[package]
edition = "2021"
name = "rapidfire"
version = "0.2.0"
authors = ["alex09x <alex@prod.codes>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-dependency async MPMC and MPSC channels with a lock-free queue and receive batching"
readme = "README.md"
keywords = [
"channel",
"async",
"lock-free",
"latency",
"tokio",
]
categories = [
"concurrency",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/alex09x/rapidfire"
[features]
loom = ["dep:loom"]
[lib]
name = "rapidfire"
path = "src/lib.rs"
[[example]]
name = "asm_probe"
path = "examples/asm_probe.rs"
[[example]]
name = "mpsc_compare"
path = "examples/mpsc_compare.rs"
[[example]]
name = "quick"
path = "examples/quick.rs"
[[test]]
name = "channel_tests"
path = "tests/channel_tests.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
[[test]]
name = "mpsc_adversarial"
path = "tests/mpsc_adversarial.rs"
[[test]]
name = "mpsc_loom"
path = "tests/mpsc_loom.rs"
[[test]]
name = "mpsc_tests"
path = "tests/mpsc_tests.rs"
[[bench]]
name = "channel_benchmarks"
path = "benches/channel_benchmarks.rs"
harness = false
[[bench]]
name = "raw_bench"
path = "benches/raw_bench.rs"
[[bench]]
name = "real_case"
path = "benches/real_case.rs"
[dependencies.loom]
version = "0.7"
features = ["futures"]
optional = true
[dev-dependencies.async-channel]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.crossbeam-queue]
version = "0.3"
[dev-dependencies.flume]
version = "0.11"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(fcrs_small_blocks)",
"cfg(fcrs_publish_asm)",
"cfg(fcrs_publish_fence)",
"cfg(fcrs_publish_rmw)",
"cfg(fcrs_mark_rmw)",
"cfg(fcrs_debug)",
]
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 1