[package]
edition = "2021"
rust-version = "1.70"
name = "ratelock"
version = "0.1.0"
authors = ["CppNexus <cppnexus@proton.me>"]
build = false
exclude = [
".github/",
"target/",
"Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-dependency, zero-allocation, lock-free token bucket rate limiter for Rust (std + no_std)."
homepage = "https://github.com/cppNexus/ratelock"
documentation = "https://docs.rs/ratelock"
readme = "README.md"
keywords = [
"rate-limit",
"token-bucket",
"lock-free",
"no-std",
"throttling",
]
categories = [
"algorithms",
"concurrency",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/cppNexus/ratelock.git"
[features]
default = ["std"]
std = []
[lib]
name = "ratelock"
path = "src/lib.rs"
[[test]]
name = "clock_mock"
path = "tests/clock_mock.rs"
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
[[test]]
name = "correctness"
path = "tests/correctness.rs"
[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"
[[test]]
name = "sharded"
path = "tests/sharded.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[bench]]
name = "compare"
path = "benches/compare.rs"
harness = false
required-features = ["std"]
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.governor]
version = "0.10.1"