xlimit

Crates.ioxlimit
lib.rsxlimit
version0.1.0
created_at2025-06-24 19:27:12.592782+00
updated_at2025-06-24 19:27:12.592782+00
descriptionLightweight in-memory rate limiting library in Rust
homepagehttps://github.com/mikeziminio/xlimit
repositoryhttps://github.com/mikeziminio/xlimit
max_upload_size
id1724908
size2,345
Mike Zimin (mikeziminio)

documentation

README

xlimit

Lightweight in-memory rate limiting library in Rust.

Usage

let mut limiter = xlimit::Limiter::new(10, std::time::Duration::from_secs(1));
if limiter.allow("user_123") {
    println!("Allowed");
} else {
    println!("Rate limit exceeded");
}
Commit count: 0

cargo fmt