[package]
edition = "2021"
rust-version = "1.90"
name = "throttle-core"
version = "0.0.1"
authors = ["The Dynomite Rust Port Authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tokio-free token-bucket admission control with loom-checkable atomics."
readme = false
license = "Apache-2.0"
repository = "https://github.com/gburd/dynomite"
[lib]
name = "throttle_core"
path = "src/lib.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.hegeltest]
version = "0.14"
features = ["native"]
[target."cfg(loom)".dependencies.loom]
version = "0.7"
features = ["futures"]
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"
features = ["futures"]
[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]