[package]
edition = "2021"
rust-version = "1.85"
name = "ds-ring"
version = "0.2.0"
authors = ["Wyatt Au <wyatt_au@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fixed-capacity ring buffers: sample/latency ring and SPSC, loom-tested"
readme = false
license = "Apache-2.0"
repository = "https://github.com/WyattAu/ds-kit"
[package.metadata.layers]
tier = "L0"
[package.metadata.notes]
hot-path = "no panics, no allocation after construction, no syscalls"
oracle = "src/oracle.rs is the forever-reference for differential testing"
unsafe = "SpscRing MaybeUninit slot access is the estate-sanctioned exception, loom-checked in tests/loom_spsc.rs"
[lib]
name = "ds_ring"
path = "src/lib.rs"
[[test]]
name = "loom_spsc"
path = "tests/loom_spsc.rs"
[[test]]
name = "props"
path = "tests/props.rs"
[[test]]
name = "traits"
path = "tests/traits.rs"
[[bench]]
name = "iai"
path = "benches/iai.rs"
[dependencies.loom]
version = "0.7"
[dev-dependencies.iai-callgrind]
version = "0.14"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
panic = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(kani)",
]