Rate limiting using a fixed window counter for arbitrary keys, backed by Redis.
CI | |
License |
Table of Contents
The crates included as part of Limitation are:
limitation
: A library implementing a configurable, asynchronousLimiter
.limitation-actix-middleware
: An Actix web middleware for rate limiting requests keyed on a configurable header.limitation-example
: An example command line application to demonstrate theLimiter
in isolation.limitation-proxy
: A reverse proxy service with configurable rate limiting.
The limitation-proxy
crate is intended for deploying or experimenting with
fronting an API with rate limiting. The limitation
crate can be used for
standalone projects or integration into other runtimes and frameworks. The
limitation-actix-middleware
crate is for developers wishing to integrate rate
limiting into Actix web-based applications and services. Finally, the
limitation-example
crate won't be released to Crates.io but rather serves as
an example.
Operating System | Stable Rust | Nightly Rust | MSRV |
---|---|---|---|
FreeBSD | |||
Linux | |||
macOS | |||
Windows |
Operating System | Stable Rust | Nightly Rust | MSRV |
---|---|---|---|
FreeBSD | |||
Linux | |||
macOS | |||
Windows |
Status | |
---|---|
Lint | |
Format |
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to fnichol@nichol.ca.
If you have any problems with or questions about this project, please contact us through a GitHub issue.
You are invited to contribute to new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
Created and maintained by Fletcher Nichol (fnichol@nichol.ca).
Licensed under the Mozilla Public License Version 2.0 (LICENSE.txt).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MPL-2.0 license, shall be licensed as above, without any additional terms or conditions.