# 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 = "tocket" version = "0.2.1" authors = ["LazyMechanic "] description = "A implemetation of 'Token Bucket' algorithm" documentation = "https://docs.rs/tocket" readme = "README.md" keywords = ["token", "bucket", "rate", "limit"] categories = ["algorithms", "web-programming"] license = "MIT OR Apache-2.0" repository = "https://github.com/LazyMechanic/tocket" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [[bench]] name = "bench_main" harness = false [dependencies.async-trait] version = "0.1" optional = true [dependencies.borsh] version = "0.9" optional = true [dependencies.bytes] version = "1.1" optional = true [dependencies.crc32fast] version = "1.3" optional = true [dependencies.futures] version = "0.3" optional = true [dependencies.parking_lot] version = "0.12" [dependencies.redis] version = "0.21" optional = true [dependencies.thiserror] version = "1.0" [dependencies.time] version = "0.3" [dependencies.tokio] version = "1.17" features = ["net", "rt", "macros", "sync"] optional = true [dependencies.tokio-util] version = "0.7" features = ["codec", "net"] optional = true [dependencies.tracing] version = "0.1" [dev-dependencies.criterion] version = "0.3.5" [dev-dependencies.crossbeam] version = "0.8.1" [dev-dependencies.tokio] version = "1.17" features = ["full"] [dev-dependencies.uuid] version = "1.0" features = ["v4"] [features] default = [] distributed-impl = ["async-trait", "borsh", "bytes", "crc32fast", "futures", "tokio", "tokio-util"] redis-impl = ["redis"]