# 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 = "limitr" version = "0.2.1" authors = ["Arteii "] build = false include = [ "src/**/*", "README.md", "LICENSE", "examples/**/*", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A crate offering various rate-limiting algorithms such as Token Bucket, Leaky Bucket, and more." readme = "README.md" keywords = [ "rate-limit", "throttling", "token-bucket", "leaky-bucket", "api-protection", ] categories = [ "algorithms", "network-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/arteiii/limitr" [package.metadata.docs.rs] all-features = true [lib] name = "limitr" path = "src/lib.rs" [[example]] name = "fixed_window_example" path = "examples/fixed_window_example.rs" [[example]] name = "leaky_example" path = "examples/leaky_example.rs" [[example]] name = "sliding_window_example" path = "examples/sliding_window_example.rs" [[example]] name = "token_example" path = "examples/token_example.rs" [dependencies.rand] version = "0.9.0-alpha.2" [dependencies.tokio] version = "1.40.0" features = [ "time", "rt", "macros", "rt-multi-thread", "sync", ] [dependencies.tracing] version = "0.1.40" [dependencies.tracing-subscriber] version = "0.3.18" [dev-dependencies.tokio] version = "1.40.0" features = ["full"] [dev-dependencies.tokio-test] version = "0.4.4" [features] bucket = [] default = [ "bucket", "window", ] full = [ "bucket", "window", ] window = []