[package]
edition = "2024"
name = "loopq"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An efficient SPSC lock-free ring buffer with support for no_std, Embassy, and Tokio."
readme = "README.md"
keywords = [
"ring-buffer",
"lock-free",
"spsc",
"async",
"no_std",
]
categories = [
"data-structures",
"concurrency",
"embedded",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ggriffiniii/loopq"
[package.metadata.docs.rs]
all-features = true
[features]
embassy = ["dep:embassy-sync"]
tokio = ["dep:tokio"]
[lib]
name = "loopq"
path = "src/lib.rs"
[[test]]
name = "embassy_tests"
path = "tests/embassy_tests.rs"
[[test]]
name = "loom_tests"
path = "tests/loom_tests.rs"
[[test]]
name = "proptests"
path = "tests/proptests.rs"
[[test]]
name = "tokio_tests"
path = "tests/tokio_tests.rs"
[[bench]]
name = "comparison"
path = "benches/comparison.rs"
harness = false
[dependencies.embassy-sync]
version = "0.6"
optional = true
[dependencies.portable-atomic]
version = "1.6"
[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true
[dev-dependencies.bbqueue]
version = "0.5"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.critical-section]
version = "1.1"
features = ["std"]
[dev-dependencies.crossbeam-queue]
version = "0.3"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.pprof]
version = "0.13"
features = [
"criterion",
"flamegraph",
]
[dev-dependencies.proptest]
version = "1.0"
[dev-dependencies.ringbuf]
version = "0.3"
[dev-dependencies.rtrb]
version = "0.2"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"time",
]
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]
[profile.bench]
debug = 2