# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.80.0" name = "gcra" version = "0.6.0" authors = ["Sam Shih "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A basic implementation of GCRA algorithm for rate limiting" homepage = "https://github.com/lytefast/gcra-rs" readme = "README.md" keywords = [ "rate-limit", "rate", "limit", "gcra", "limiter", ] license = "MIT" repository = "https://github.com/lytefast/gcra-rs" [lib] name = "gcra" path = "src/lib.rs" [[example]] name = "gcra_check" path = "examples/gcra_check.rs" [[example]] name = "rate_limiter" path = "examples/rate_limiter.rs" required-features = ["rate-limiter"] [dependencies.dashmap] version = "5.5.3" optional = true [dependencies.rustc-hash] version = "1.1.0" optional = true [dependencies.thiserror] version = "1.0.60" [dev-dependencies.chrono] version = "0.4.38" [dev-dependencies.futures] version = "0.3.30" [dev-dependencies.tokio] version = "1.37.0" features = ["full"] [features] default = ["rate-limiter"] rate-limiter = [ "dashmap", "rustc-hash", ]