# 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 = "axum_gcra" version = "0.1.1" authors = ["novacrazy "] build = false include = [ "src/**/*", "LICENSE-*", "README.md", ] autobins = false autoexamples = false autotests = false autobenches = false description = "GCRA-based Rate Limiter for Axum with per-route/per-key rate limiting" documentation = "https://docs.rs/axum_gcra" readme = "README.md" keywords = [ "axum", "rate-limiting", "middleware", "gcra", ] categories = ["web-programming"] license = "MIT OR Apache-2.0" repository = "https://github.com/Lantern-chat/axum_gcra" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "axum_gcra" path = "src/lib.rs" [dependencies.ahash] version = "0.8.11" optional = true [dependencies.async-trait] version = "0.1.81" optional = true [dependencies.axum] version = "0.7" features = ["matched-path"] default-features = false [dependencies.futures-util] version = "0.3.30" [dependencies.http] version = "1.1.0" [dependencies.pin-project-lite] version = "0.2.14" [dependencies.scc] version = "2" [dependencies.tokio] version = "1" features = [ "rt", "sync", "time", "macros", ] optional = true default-features = false [dependencies.tower] version = "0.4" [dev-dependencies.axum] version = "0.7" default-features = true [dev-dependencies.tokio] version = "1" features = ["full"] [features] ahash = ["dep:ahash"] default = [ "tokio", "real_ip", "ahash", ] real_ip = [ "tokio", "dep:async-trait", ] tokio = [ "dep:tokio", "axum/tokio", ]