-
Notifications
You must be signed in to change notification settings - Fork 30
/
Cargo.toml
65 lines (54 loc) · 1.67 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
[package]
name = "event-listener"
# When publishing a new version:
# - Update CHANGELOG.md
# - Create "v5.x.y" git tag
version = "5.3.1"
authors = ["Stjepan Glavina <[email protected]>", "John Nunley <[email protected]>"]
edition = "2021"
rust-version = "1.60"
description = "Notify async tasks or threads"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/smol-rs/event-listener"
keywords = ["condvar", "eventcount", "wake", "blocking", "park"]
categories = ["asynchronous", "concurrency"]
exclude = ["/.*"]
[features]
default = ["std"]
std = ["concurrent-queue/std", "parking"]
portable-atomic = [
"portable-atomic-util",
"portable_atomic_crate",
"concurrent-queue/portable-atomic",
]
loom = ["concurrent-queue/loom", "parking?/loom", "dep:loom"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[dependencies]
concurrent-queue = { version = "2.4.0", default-features = false }
pin-project-lite = "0.2.12"
portable-atomic-util = { version = "0.2.0", default-features = false, optional = true, features = ["alloc"] }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
parking = { version = "2.0.0", optional = true }
[target.'cfg(loom)'.dependencies]
loom = { version = "0.7", optional = true }
[dependencies.portable_atomic_crate]
package = "portable-atomic"
version = "1.2.0"
default-features = false
optional = true
[dev-dependencies]
futures-lite = "2.0.0"
try-lock = "0.2.5"
waker-fn = "1"
[dev-dependencies.criterion]
version = "0.5"
default-features = false
features = ["cargo_bench_support"]
[target.'cfg(target_family = "wasm")'.dev-dependencies]
wasm-bindgen-test = "0.3"
[[bench]]
name = "bench"
harness = false
[lib]
bench = false