# 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 = "actix-rl"
version = "0.2.2"
authors = ["caojen <caojen@mail2.sysu.edu.cn>"]
description = "`actix-rl` is a RateLimit middleware for the `actix-web` library."
readme = "README.md"
keywords = [
    "rate-limit",
    "actix-web",
]
license = "MIT"
repository = "https://github.com/caojen/actix-rl"

[dependencies.actix-web]
version = "4"

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

[dependencies.chrono]
version = "0.4"

[dependencies.futures-util]
version = "0.3"

[dependencies.redis]
version = "0.25"
features = [
    "tokio-comp",
    "tokio-rustls-comp",
    "aio",
]
optional = true

[dependencies.tokio]
version = "1"
features = ["sync"]

[dev-dependencies.anyhow]
version = "1.0.86"

[dev-dependencies.lazy_static]
version = "1.5.0"

[dev-dependencies.tokio]
version = "1.38.0"
features = ["full"]

[features]
redis-store = ["redis"]
