2020-05-16 17:44:50 +00:00
|
|
|
[package]
|
|
|
|
name = "event-listener"
|
2022-01-08 10:28:55 +00:00
|
|
|
# When publishing a new version:
|
|
|
|
# - Update CHANGELOG.md
|
2024-02-05 03:23:00 +00:00
|
|
|
# - Create "v5.x.y" git tag
|
2024-04-05 15:34:23 +00:00
|
|
|
version = "5.3.0"
|
2020-05-16 17:44:50 +00:00
|
|
|
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
|
2023-10-13 01:36:17 +00:00
|
|
|
edition = "2021"
|
2024-01-06 16:31:48 +00:00
|
|
|
rust-version = "1.60"
|
2020-05-16 17:44:50 +00:00
|
|
|
description = "Notify async tasks or threads"
|
|
|
|
license = "Apache-2.0 OR MIT"
|
2020-12-26 14:47:13 +00:00
|
|
|
repository = "https://github.com/smol-rs/event-listener"
|
2020-05-16 17:44:50 +00:00
|
|
|
keywords = ["condvar", "eventcount", "wake", "blocking", "park"]
|
|
|
|
categories = ["asynchronous", "concurrency"]
|
2022-01-08 10:28:02 +00:00
|
|
|
exclude = ["/.*"]
|
2020-05-20 19:13:35 +00:00
|
|
|
|
2022-11-11 15:53:43 +00:00
|
|
|
[features]
|
|
|
|
default = ["std"]
|
2023-08-19 15:36:34 +00:00
|
|
|
std = ["concurrent-queue/std", "parking"]
|
2023-04-03 04:36:44 +00:00
|
|
|
portable-atomic = ["portable-atomic-util", "portable_atomic_crate"]
|
2024-03-28 22:24:35 +00:00
|
|
|
loom = ["concurrent-queue/loom", "parking?/loom", "dep:loom"]
|
2022-11-11 15:53:43 +00:00
|
|
|
|
2022-08-24 13:39:27 +00:00
|
|
|
[dependencies]
|
2024-03-28 22:24:35 +00:00
|
|
|
concurrent-queue = { version = "2.4.0", default-features = false }
|
2023-08-09 19:27:09 +00:00
|
|
|
pin-project-lite = "0.2.12"
|
2023-12-16 20:44:52 +00:00
|
|
|
portable-atomic-util = { version = "0.1.4", default-features = false, optional = true, features = ["alloc"] }
|
2023-04-03 04:36:44 +00:00
|
|
|
|
2023-08-26 19:53:39 +00:00
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
|
|
|
parking = { version = "2.0.0", optional = true }
|
|
|
|
|
2024-03-28 22:24:35 +00:00
|
|
|
[target.'cfg(loom)'.dependencies]
|
|
|
|
loom = { version = "0.7", optional = true }
|
|
|
|
|
2023-04-03 04:36:44 +00:00
|
|
|
[dependencies.portable_atomic_crate]
|
|
|
|
package = "portable-atomic"
|
|
|
|
version = "1.2.0"
|
|
|
|
default-features = false
|
|
|
|
optional = true
|
2022-08-24 13:39:27 +00:00
|
|
|
|
2020-05-20 19:13:35 +00:00
|
|
|
[dev-dependencies]
|
2023-10-30 16:56:17 +00:00
|
|
|
futures-lite = "2.0.0"
|
2023-12-20 03:37:27 +00:00
|
|
|
try-lock = "0.2.5"
|
2022-01-22 07:38:14 +00:00
|
|
|
waker-fn = "1"
|
2022-09-09 14:30:51 +00:00
|
|
|
|
2022-11-12 16:14:57 +00:00
|
|
|
[dev-dependencies.criterion]
|
2024-01-06 16:39:35 +00:00
|
|
|
version = "0.5"
|
2022-11-12 16:14:57 +00:00
|
|
|
default-features = false
|
|
|
|
features = ["cargo_bench_support"]
|
|
|
|
|
2023-08-26 19:53:39 +00:00
|
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
|
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
|
2022-09-09 14:30:51 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[lib]
|
2022-11-11 15:53:43 +00:00
|
|
|
bench = false
|