# 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 = "tower_governor" version = "0.4.3" authors = ["Ben Wishovich "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A rate-limiting middleware for Tower backed by the governor crate that allows configurable key based and global limits" readme = "README.md" keywords = [ "axum", "tower", "tonic", "rate-limit", "governor", ] categories = ["web-programming::http-server"] license = "MIT OR Apache-2.0" repository = "https://github.com/benwis/tower-governor" [lib] name = "tower_governor" path = "src/lib.rs" [dependencies.axum] version = "0.7" optional = true [dependencies.forwarded-header-value] version = "0.1.1" [dependencies.governor] version = "0.6.0" [dependencies.http] version = "1.0.0" [dependencies.pin-project] version = "1.0.12" [dependencies.thiserror] version = "1.0.37" [dependencies.tower] version = "0.5.1" [dependencies.tracing] version = "0.1.37" features = ["attributes"] [dev-dependencies.hyper] version = "1" [dev-dependencies.reqwest] version = "0.12" features = ["json"] default-features = false [dev-dependencies.serde_json] version = "1.0.89" [dev-dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", ] [dev-dependencies.tower] version = "0.5" features = ["util"] [dev-dependencies.tower-http] version = "0.6" features = ["trace"] [dev-dependencies.tracing-subscriber] version = "0.3.16" features = ["env-filter"] [features] axum = ["dep:axum"] default = ["axum"] tracing = []