| 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.4.0" |
| 7 | authors = ["Stjepan Glavina <stjepang@gmail.com>" , "John Nunley <dev@notgull.net>" ] |
| 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 = [ |
| 21 | "portable-atomic-util" , |
| 22 | "portable_atomic_crate" , |
| 23 | "concurrent-queue/portable-atomic" , |
| 24 | ] |
| 25 | loom = ["concurrent-queue/loom" , "parking?/loom" , "dep:loom" ] |
| 26 | |
| 27 | [lints.rust] |
| 28 | unexpected_cfgs = { level = "warn" , check-cfg = ['cfg(loom)' ] } |
| 29 | |
| 30 | [dependencies] |
| 31 | concurrent-queue = { version = "2.4.0" , default-features = false } |
| 32 | critical-section = { version = "1.2.0" , default-features = false, optional = true } |
| 33 | pin-project-lite = "0.2.12" |
| 34 | portable-atomic-util = { version = "0.2.0" , default-features = false, optional = true, features = ["alloc" ] } |
| 35 | |
| 36 | [target.'cfg(not(target_family = "wasm"))'.dependencies] |
| 37 | parking = { version = "2.0.0" , optional = true } |
| 38 | |
| 39 | [target.'cfg(loom)'.dependencies] |
| 40 | loom = { version = "0.7" , optional = true } |
| 41 | |
| 42 | [dependencies.portable_atomic_crate] |
| 43 | package = "portable-atomic" |
| 44 | version = "1.2.0" |
| 45 | default-features = false |
| 46 | optional = true |
| 47 | |
| 48 | [dev-dependencies] |
| 49 | critical-section = { version = "1.2.0" , features = ["std" ] } |
| 50 | futures-lite = "2.0.0" |
| 51 | try-lock = "0.2.5" |
| 52 | waker-fn = "1" |
| 53 | |
| 54 | [dev-dependencies.criterion] |
| 55 | version = "0.5" |
| 56 | default-features = false |
| 57 | features = ["cargo_bench_support" ] |
| 58 | |
| 59 | [target.'cfg(target_family = "wasm")'.dev-dependencies] |
| 60 | wasm-bindgen-test = "0.3" |
| 61 | |
| 62 | [[bench]] |
| 63 | name = "bench" |
| 64 | harness = false |
| 65 | |
| 66 | [lib] |
| 67 | bench = false |
| 68 | |