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