| Crates.io | xlimit |
| lib.rs | xlimit |
| version | 0.1.0 |
| created_at | 2025-06-24 19:27:12.592782+00 |
| updated_at | 2025-06-24 19:27:12.592782+00 |
| description | Lightweight in-memory rate limiting library in Rust |
| homepage | https://github.com/mikeziminio/xlimit |
| repository | https://github.com/mikeziminio/xlimit |
| max_upload_size | |
| id | 1724908 |
| size | 2,345 |
Lightweight in-memory rate limiting library in Rust.
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");
}