- Update
redis
dependency to0.27
. - Update
actix-session
dependency to0.9
.
- No significant changes since
0.5.0
.
- Update
redis
dependency to0.23
. - Update
actix-session
dependency to0.8
.
- Add
Builder::key_by
for setting a custom rate limit key function. - Implement
Default
forRateLimiter
. RateLimiter
is marked#[non_exhaustive]
; useRateLimiter::default()
instead.- In the middleware errors from the count function are matched and respond with
INTERNAL_SERVER_ERROR
if it's an unexpected error, instead of the defaultTOO_MANY_REQUESTS
. - Minimum supported Rust version (MSRV) is now 1.59 due to transitive
time
dependency.
Limiter::builder
now takes animpl Into<String>
.- Removed lifetime from
Builder
. - Updated
actix-session
dependency to0.7
.
- Update Actix Web dependency to v4 ecosystem.
- Update Tokio dependencies to v1 ecosystem.
- Rename
Limiter::{build => builder}()
. - Rename
Builder::{finish => build}()
. - Exceeding the rate limit now returns a 429 Too Many Requests response.
- Adopted into @actix org from https://github.com/0xmad/actix-limitation.