# 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 = "async-rate-limiter" version = "1.1.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Implements a token bucket algorithm that can be used to limit API access frequency. Written in pure Rust." homepage = "https://github.com/mindeng/async-rate-limiter" readme = "README.md" license-file = "LICENSE" repository = "https://github.com/mindeng/async-rate-limiter" [lib] name = "async_rate_limiter" path = "src/lib.rs" [dependencies.async-std] version = "1" features = ["unstable"] optional = true [dependencies.futures] version = "0.3.30" [dependencies.tokio] version = "1" features = [ "time", "rt", ] optional = true [dependencies.tokio-stream] version = "0.1" features = ["time"] optional = true [dev-dependencies.tokio] version = "1" features = [ "time", "rt", "rt-multi-thread", "macros", ] [features] default = ["rt-tokio"] rt-async-std = ["async-std"] rt-tokio = [ "tokio", "tokio-stream", ]