1[package]
2name = "event-listener"
3# When publishing a new version:
4# - Update CHANGELOG.md
5# - Create "v4.x.y" git tag
6version = "4.0.3"
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"
38waker-fn = "1"
39
40[dev-dependencies.criterion]
41version = "0.5"
42default-features = false
43features = ["cargo_bench_support"]
44
45[target.'cfg(target_family = "wasm")'.dev-dependencies]
46wasm-bindgen-test = "0.3"
47
48[[bench]]
49name = "bench"
50harness = false
51
52[lib]
53bench = false
54