[package]
edition = "2021"
rust-version = "1.75"
name = "mod-events"
version = "0.2.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, zero-overhead event dispatcher library for Rust"
homepage = "https://github.com/jamesgober/mod-events"
documentation = "https://docs.rs/mod-events"
readme = "README.md"
keywords = [
"events",
"dispatcher",
"async",
"performance",
"observer",
]
categories = [
"concurrency",
"asynchronous",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/mod-events"
[features]
async = ["tokio"]
default = ["async"]
[lib]
name = "mod_events"
path = "src/lib.rs"
[[example]]
name = "async_usage"
path = "examples/async_usage.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[test]]
name = "benchmarks"
path = "tests/benchmarks.rs"
[[test]]
name = "concurrent"
path = "tests/concurrent.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "loom_concurrent"
path = "tests/loom_concurrent.rs"
[[bench]]
name = "dispatch_benchmark"
path = "benches/dispatch_benchmark.rs"
harness = false
[dependencies.parking_lot]
version = "=0.12.4"
[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.loom]
version = "0.7"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]