-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
88 lines (74 loc) · 2.3 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[package]
name = "zallocator"
version = "0.5.1"
authors = ["Al Liu <[email protected]>"]
edition = "2021"
license = "MIT/Apache-2.0"
repository = "https://github.com/al8n/zallocator"
documentation = "https://docs.rs/zallocator"
description = "Amortizes the cost of small allocations by allocating memory in bigger chunks."
keywords = ["allocator", "memory"]
categories = ["data-structures", "no-std", "concurrency"]
rust-version = "1.70.0"
[[bench]]
name = "allocator"
path = "benches/bench.rs"
harness = false
[features]
default = ["std"]
std = [
"rand/std",
"rand/std_rng",
"parking_lot",
"crossbeam-utils/default",
"crossbeam-queue/default",
"triomphe/default",
]
core = ["lazy_static/spin_no_std", "spin", "rand/alloc", "hashbrown"]
js = ["getrandom/js", "futures-timer/wasm-bindgen"]
future = ["futures-timer"]
tokio = ["dep:tokio", "future"]
async-std = ["dep:async-std", "future"]
smol = ["dep:smol", "future"]
[dependencies]
crossbeam-queue = { version = "0.3", default-features = false, features = [
"alloc",
] }
crossbeam-utils = { version = "0.8", default-features = false }
lazy_static = { version = "1.4", default-features = false }
rand = { version = "0.8", default-features = false }
triomphe = { version = "0.1", default-features = false }
futures-timer = { version = "3", optional = true }
getrandom = { version = "0.2", optional = true }
hashbrown = { version = "0.14", optional = true }
parking_lot = { version = "0.12", optional = true }
spin = { version = "0.9", optional = true }
tokio = { version = "1", default-features = false, features = [
"rt",
], optional = true }
async-std = { version = "1", optional = true }
smol = { version = "2", optional = true, default-features = false }
[dev-dependencies]
criterion = "0.5"
rand = "0.8"
tokio = { version = "1", features = ["full"] }
tokio-test = "0.4"
paste = "1"
smol = "2"
async-std = "1"
[target.'cfg(loom)'.dev-dependencies]
loom = "0.7"
[target.'cfg(wasm)'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[[example]]
name = "async-pool"
path = "examples/async_pool.rs"
required-features = ["tokio"]
[[example]]
name = "pool"
path = "examples/pool.rs"
required-features = ["std"]
[package.metadata.docs.rs]
no-default-features = false
features = ["future", "tokio", "async-std", "smol", "std"]
rustdoc-args = ["--cfg", "docsrs"]