2022-03-18 18:00:33 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-limitation"
|
2022-09-11 01:06:57 +02:00
|
|
|
version = "0.4.0"
|
2022-03-22 16:36:41 +01:00
|
|
|
authors = [
|
|
|
|
"0xmad <0xmad@users.noreply.github.com>",
|
|
|
|
"Rob Ede <robjtede@icloud.com>",
|
|
|
|
]
|
2022-03-18 18:00:33 +01:00
|
|
|
description = "Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web"
|
|
|
|
keywords = ["actix-web", "rate-api", "rate-limit", "limitation"]
|
|
|
|
categories = ["asynchronous", "web-programming"]
|
|
|
|
repository = "https://github.com/actix/actix-extras.git"
|
2023-09-16 01:30:38 +02:00
|
|
|
license.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
2022-03-18 18:00:33 +01:00
|
|
|
|
2023-04-11 13:22:28 +02:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
all-features = true
|
|
|
|
|
2022-09-11 01:02:54 +02:00
|
|
|
[features]
|
|
|
|
default = ["session"]
|
|
|
|
session = ["actix-session"]
|
|
|
|
|
2022-03-18 18:00:33 +01:00
|
|
|
[dependencies]
|
|
|
|
actix-utils = "3"
|
2022-09-11 01:02:54 +02:00
|
|
|
actix-web = { version = "4", features = ["cookies"] }
|
2022-03-18 18:00:33 +01:00
|
|
|
|
|
|
|
chrono = "0.4"
|
2023-01-07 02:08:01 +01:00
|
|
|
derive_more = "0.99.7"
|
2022-03-18 18:00:33 +01:00
|
|
|
log = "0.4"
|
2023-09-16 02:30:20 +02:00
|
|
|
redis = { version = "0.23", default-features = false, features = ["tokio-comp"] }
|
2022-03-18 18:00:33 +01:00
|
|
|
time = "0.3"
|
|
|
|
|
2022-09-11 01:02:54 +02:00
|
|
|
# session
|
|
|
|
actix-session = { version = "0.7", optional = true }
|
|
|
|
|
2022-03-18 18:00:33 +01:00
|
|
|
[dev-dependencies]
|
|
|
|
actix-web = "4"
|
2022-03-20 01:40:34 +01:00
|
|
|
static_assertions = "1"
|
2022-07-09 20:58:42 +02:00
|
|
|
uuid = { version = "1", features = ["v4"] }
|