[package]
exclude = ["/target"]
name = "shared-state"
version = "0.1.3"
edition = "2024"
rust-version = "1.85"
description = "Concurrent state utilities: readiness gates, TTL caches, shared counters, type aliases"
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/shared-state"
keywords = ["state", "concurrency", "cache"]
categories = ["rust-patterns"]
[dependencies]
dashmap = "6"
tokio = { version = "1", features = ["sync", "time"] }
[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "test-util"] }
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1"
[target.'cfg(loom)'.dependencies]
loom = "0.7"
[lints.rust]
unsafe_code = "forbid"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[[bench]]
name = "state_bench"
harness = false
[lints.clippy]
unwrap_used = "warn"
expect_used = "warn"
[package.metadata.layers]
tier = "L1"