# 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" name = "limitador" version = "0.7.0" authors = [ "David Ortiz ", "Eguzki Astiz Lezaun ", "Alex Snaps ", ] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Rate limiting library" homepage = "https://kuadrant.io" documentation = "https://docs.rs/limitador" readme = "README.md" keywords = [ "rate-limiting", "rate", "limiter", ] categories = ["web-programming"] license = "Apache-2.0" repository = "https://github.com/kuadrant/limitador" [lib] name = "limitador" path = "src/lib.rs" [[test]] name = "integration_tests" path = "tests/integration_tests.rs" [[bench]] name = "bench" path = "benches/bench.rs" harness = false [dependencies.async-trait] version = "0.1" [dependencies.base64] version = "0.22" optional = true [dependencies.cfg-if] version = "1" [dependencies.dashmap] version = "5.5.3" [dependencies.futures] version = "0.3" [dependencies.getrandom] version = "0.2" features = ["js"] [dependencies.h2] version = "0.3" optional = true [dependencies.metrics] version = "0.22.3" [dependencies.moka] version = "0.12" features = ["sync"] [dependencies.postcard] version = "1.0.4" features = ["use-std"] [dependencies.prost] version = "0.12" optional = true [dependencies.prost-types] version = "0.12" optional = true [dependencies.r2d2] version = "0.8" optional = true [dependencies.redis] version = "0.25" features = [ "connection-manager", "tokio-comp", "tls-native-tls", "tokio-native-tls-comp", ] optional = true [dependencies.rmp-serde] version = "1.1.0" [dependencies.rocksdb] version = "0.22" features = ["multi-threaded-cf"] optional = true [dependencies.serde] version = "1" features = [ "derive", "rc", ] [dependencies.serde_json] version = "1" [dependencies.thiserror] version = "1" [dependencies.time] version = "0.3.36" [dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", "time", ] optional = true [dependencies.tokio-stream] version = "0.1" optional = true [dependencies.tonic] version = "0.11" optional = true [dependencies.tonic-reflection] version = "0.11" optional = true [dependencies.tracing] version = "0.1.40" [dependencies.uuid] version = "1.8.0" features = [ "v4", "fast-rng", ] optional = true [dev-dependencies.criterion] version = "0.5.1" features = [ "html_reports", "async_tokio", ] [dev-dependencies.paste] version = "1" [dev-dependencies.rand] version = "0.8" [dev-dependencies.redis] version = "0.25" features = [ "connection-manager", "tokio-comp", "tls-native-tls", "tokio-native-tls-comp", ] [dev-dependencies.redis-test] version = "0.4.0" features = ["aio"] [dev-dependencies.serial_test] version = "3.0" [dev-dependencies.tempfile] version = "3.5.0" [dev-dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", "time", ] [build-dependencies.tonic-build] version = "0.11" [features] default = [ "disk_storage", "redis_storage", ] disk_storage = ["rocksdb"] distributed_storage = [ "tokio", "tokio-stream", "h2", "base64", "uuid", "tonic", "tonic-reflection", "prost", "prost-types", ] lenient_conditions = [] redis_storage = [ "redis", "r2d2", "tokio", ]