1[package]
2name = "event-listener"
3# When publishing a new version:
4# - Update CHANGELOG.md
5# - Create "v5.x.y" git tag
6version = "5.4.0"
7authors = ["Stjepan Glavina <stjepang@gmail.com>", "John Nunley <dev@notgull.net>"]
8edition = "2021"
9rust-version = "1.60"
10description = "Notify async tasks or threads"
11license = "Apache-2.0 OR MIT"
12repository = "https://github.com/smol-rs/event-listener"
13keywords = ["condvar", "eventcount", "wake", "blocking", "park"]
14categories = ["asynchronous", "concurrency"]
15exclude = ["/.*"]
16
17[features]
18default = ["std"]
19std = ["concurrent-queue/std", "parking"]
20portable-atomic = [
21 "portable-atomic-util",
22 "portable_atomic_crate",
23 "concurrent-queue/portable-atomic",
24]
25loom = ["concurrent-queue/loom", "parking?/loom", "dep:loom"]
26
27[lints.rust]
28unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
29
30[dependencies]
31concurrent-queue = { version = "2.4.0", default-features = false }
32critical-section = { version = "1.2.0", default-features = false, optional = true }
33pin-project-lite = "0.2.12"
34portable-atomic-util = { version = "0.2.0", default-features = false, optional = true, features = ["alloc"] }
35
36[target.'cfg(not(target_family = "wasm"))'.dependencies]
37parking = { version = "2.0.0", optional = true }
38
39[target.'cfg(loom)'.dependencies]
40loom = { version = "0.7", optional = true }
41
42[dependencies.portable_atomic_crate]
43package = "portable-atomic"
44version = "1.2.0"
45default-features = false
46optional = true
47
48[dev-dependencies]
49critical-section = { version = "1.2.0", features = ["std"] }
50futures-lite = "2.0.0"
51try-lock = "0.2.5"
52waker-fn = "1"
53
54[dev-dependencies.criterion]
55version = "0.5"
56default-features = false
57features = ["cargo_bench_support"]
58
59[target.'cfg(target_family = "wasm")'.dev-dependencies]
60wasm-bindgen-test = "0.3"
61
62[[bench]]
63name = "bench"
64harness = false
65
66[lib]
67bench = false
68