2022-03-18 18:00:33 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-limitation"
|
2023-09-16 04:36:29 +02:00
|
|
|
version = "0.5.1"
|
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"
|
2023-09-16 04:35:56 +02:00
|
|
|
actix-web = { version = "4", default-features = false, 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"
|
2024-06-10 00:29:13 +02:00
|
|
|
redis = { version = "0.25", 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
|
2024-01-11 05:27:56 +01:00
|
|
|
actix-session = { version = "0.9", optional = true }
|
2022-09-11 01:02:54 +02:00
|
|
|
|
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"] }
|
2024-06-20 03:14:35 +02:00
|
|
|
|
|
|
|
[lints]
|
|
|
|
workspace = true
|