# 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 = "2018" name = "governor" version = "0.7.0" authors = ["Andreas Fuchs "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A rate-limiting implementation in Rust" homepage = "https://github.com/boinkor-net/governor" documentation = "https://docs.rs/governor" readme = "README.md" keywords = [ "rate-limiting", "rate-limit", "no_std", "gcra", ] categories = [ "algorithms", "network-programming", "concurrency", "no-std", ] license = "MIT" repository = "https://github.com/boinkor-net/governor.git" [package.metadata.docs.rs] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "governor" path = "src/lib.rs" bench = false [[test]] name = "direct" path = "tests/direct.rs" [[test]] name = "future" path = "tests/future.rs" [[test]] name = "keyed" path = "tests/keyed.rs" [[test]] name = "keyed_dashmap" path = "tests/keyed_dashmap.rs" [[test]] name = "keyed_hashmap" path = "tests/keyed_hashmap.rs" [[test]] name = "memory_leaks" path = "tests/memory_leaks.rs" [[test]] name = "middleware" path = "tests/middleware.rs" [[test]] name = "proptests" path = "tests/proptests.rs" [[test]] name = "sinks" path = "tests/sinks.rs" [[test]] name = "streams" path = "tests/streams.rs" [[bench]] name = "governor_criterion_benches" path = "benches/governor_criterion_benches.rs" harness = false [dependencies.cfg-if] version = "1.0" [dependencies.dashmap] version = "6.1.0" optional = true [dependencies.futures-sink] version = "0.3.31" optional = true [dependencies.futures-timer] version = "3.0.3" optional = true [dependencies.futures-util] version = "0.3.31" features = [ "std", "sink", ] optional = true default-features = false [dependencies.no-std-compat] version = "0.4.1" features = ["alloc"] [dependencies.nonzero_ext] version = "0.3.0" default-features = false [dependencies.parking_lot] version = "0.12" optional = true [dependencies.portable-atomic] version = "1.6" features = ["require-cas"] [dependencies.quanta] version = "0.12.0" optional = true [dependencies.rand] version = "0.8.0" optional = true [dependencies.smallvec] version = "1.6.1" [dependencies.spinning_top] version = "0.3" [dev-dependencies.all_asserts] version = "2.2.0" [dev-dependencies.criterion] version = "0.5.1" features = ["html_reports"] [dev-dependencies.crossbeam] version = "0.8.0" [dev-dependencies.futures-executor] version = "0.3.31" [dev-dependencies.libc] version = "0.2.70" [dev-dependencies.proptest] version = "1.0.0" [dev-dependencies.tynm] version = "0.1.4" [features] default = [ "std", "dashmap", "jitter", "quanta", ] jitter = ["rand"] no_std = ["no-std-compat/compat_hash"] quanta = ["dep:quanta"] std = [ "no-std-compat/std", "nonzero_ext/std", "dep:futures-timer", "dep:futures-util", "dep:futures-sink", "dep:parking_lot", ] [badges.maintenance] status = "actively-developed"