1[package]
2name = "event-listener"
3# When publishing a new version:
4# - Update CHANGELOG.md
5# - Create "v5.x.y" git tag
6version = "5.2.0"
7authors = ["Stjepan Glavina <stjepang@gmail.com>"]
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 = ["portable-atomic-util", "portable_atomic_crate"]
21
22[dependencies]
23concurrent-queue = { version = "2.2.0", default-features = false }
24pin-project-lite = "0.2.12"
25portable-atomic-util = { version = "0.1.4", default-features = false, optional = true, features = ["alloc"] }
26
27[target.'cfg(not(target_family = "wasm"))'.dependencies]
28parking = { version = "2.0.0", optional = true }
29
30[dependencies.portable_atomic_crate]
31package = "portable-atomic"
32version = "1.2.0"
33default-features = false
34optional = true
35
36[dev-dependencies]
37futures-lite = "2.0.0"
38try-lock = "0.2.5"
39waker-fn = "1"
40
41[dev-dependencies.criterion]
42version = "0.5"
43default-features = false
44features = ["cargo_bench_support"]
45
46[target.'cfg(target_family = "wasm")'.dev-dependencies]
47wasm-bindgen-test = "0.3"
48
49[[bench]]
50name = "bench"
51harness = false
52
53[lib]
54bench = false
55