hyperlane-plugin-rate-limit 22.14.0

A 64-way sharded lock-free atomic GCRA and fixed-window rate limiter plugin for the Hyperlane framework with extensible KeyExtractor and RateLimitStore traits and RFC RateLimit headers.
Documentation

hyperlane-plugin-rate-limit

Token-Bucket & Sliding-Window Rate Limiter Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in per-key HTTP rate limiting middleware returning RFC-compliant 429 Too Many Requests and Retry-After headers.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • struct / trait / impl — Key extractors, bucket limiters, and RateLimitHook

Installation

cargo add hyperlane-plugin-rate-limit

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-rate-limit --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-rate-limit --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.