1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

adopt actix-limitation crate (#229)

* import code from actix-limitation master branch

* fix compilation

* update legal info

* fix compile errors

* ignore failing tests

* remove futures dep

* add changelog

* update readme

* fix doc test example
This commit is contained in:
Rob Ede
2022-03-18 17:00:33 +00:00
committed by GitHub
parent e8ebf525ad
commit bb553b2308
13 changed files with 667 additions and 2 deletions

View File

@ -0,0 +1,24 @@
[package]
name = "actix-limitation"
version = "0.1.4"
authors = ["0xmad <0xmad@users.noreply.github.com>"]
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"
license = "MIT OR Apache-2.0"
edition = "2018"
[dependencies]
actix-session = "0.5"
actix-utils = "3"
actix-web = { version = "4", default-features = false }
chrono = "0.4"
log = "0.4"
redis = { version = "0.21", default-features = false, features = ["aio", "tokio-comp"] }
time = "0.3"
[dev-dependencies]
actix-web = "4"
uuid = { version = "0.8", features = ["v4"] }