[package] name = "gcra" version = "0.6.0" edition = "2021" rust-version = "1.80.0" authors = ["Sam Shih "] license = "MIT" readme = "README.md" repository = "https://github.com/lytefast/gcra-rs" homepage = "https://github.com/lytefast/gcra-rs" description = "A basic implementation of GCRA algorithm for rate limiting" keywords = ["rate-limit", "rate", "limit", "gcra", "limiter"] [features] default = ["rate-limiter"] rate-limiter = ["dashmap", "rustc-hash"] [dependencies] dashmap = { version = "5.5.3", optional = true } rustc-hash = { version = "1.1.0", optional = true } thiserror = "1.0.60" [dev-dependencies] chrono = "0.4.38" tokio = { version = "1.37.0", features = ["full"] } futures = "0.3.30" [[example]] name = "rate_limiter" required-features = ["rate-limiter"]