-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
45 lines (39 loc) · 1.13 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[package]
name = "lock_ordering"
version = "0.2.0"
edition = "2021"
authors = ["Alex Bakon"]
description = "Lock ordering enforcement at compile time."
readme = "README.md"
repository = "https://github.com/akonradi/lock-ordering"
license = "MIT"
keywords = ["lock", "locking", "ordering", "deadlock"]
categories = ["no-std::no-alloc"]
rust-version = "1.75"
[lib]
name = "lock_ordering"
path = "src/lib.rs"
[features]
default = ["std", "tokio", "parking_lot", "futures"]
async = []
std = []
tokio = ["async", "dep:tokio"]
futures = ["async", "dep:futures"]
parking_lot = ["dep:parking_lot"]
[dependencies]
futures = { version = "0.3", optional = true, features = ["std"], default-features = false }
parking_lot = { version = "0.12", optional = true }
tokio = { version = "1", optional = true, features = ["sync"] }
[dev-dependencies]
axum = "0.8"
serde = { version = "1", features = ["serde_derive"] }
serde_json = "1"
static_assertions = "1.1.0"
tokio = { version = "1", features = ["rt-multi-thread"] }
trybuild = "1.0.85"
[[example]]
name = "simple_api"
required-features = ["std"]
[[example]]
name = "chat_server"
required-features = ["tokio"]