cloudiful-rate-limiter 0.1.0

Reusable async resource throttling with local and Valkey-backed backends.
Documentation
# 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 = "2024"
name = "cloudiful-rate-limiter"
version = "0.1.0"
build = false
publish = [
    "kellnr",
    "crates-io",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reusable async resource throttling with local and Valkey-backed backends."
homepage = "https://gitea.cloud1ful.com/crates/rate-limiter"
documentation = "https://docs.rs/cloudiful-rate-limiter"
readme = "README.md"
keywords = [
    "rate-limit",
    "throttle",
    "tokio",
    "valkey",
]
categories = [
    "asynchronous",
    "caching",
]
license = "Apache-2.0"
repository = "https://github.com/cloudiful/rate-limiter"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
valkey = ["dep:redis"]

[lib]
name = "rate_limiter"
path = "src/lib.rs"

[[test]]
name = "valkey_rate_limiter"
path = "tests/valkey_rate_limiter.rs"

[dependencies.async-trait]
version = "0.1.89"

[dependencies.redis]
version = "1.2.1"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.tokio]
version = "1.52.3"
features = [
    "sync",
    "time",
]

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "test-util",
    "time",
]