8 releases (breaking)

Uses new Rust 2024

0.14.0 Mar 19, 2026
0.13.0 Feb 13, 2026
0.12.0 Jan 14, 2026
0.11.0 Nov 26, 2025
0.8.0 May 26, 2025

#57 in #copper

Apache-2.0

45KB
314 lines

This is a Generic Rate limiter for Copper

If you have a source that is going too fast, you can use this simple task to skip over messages.

Task and Input

  (
            id: "rl1",
            type: "cu_ratelimit::CuRateLimit<MyPayload>", // Set your type here
            config: {
                "rate": 10.0,  // in Hz
            },
        ),
 [...]

Configuration

  • rate: the maximum rate in Hz

Output

It will match the Input type, set it as a type specialization like ie: replace MyPayload to your actual type in the config.

Dependencies

~16–23MB
~417K SLoC