ratelimit
A lock-free token bucket ratelimiter
2.0.0
22M downloads/mo
#2010 most downloaded on crates.io
iopsystems/ratelimit
What this package is like to depend on
Last release 4 months ago
21 Apr 2026
Ships unpredictably
gaps range from 5 weeks to 4.2 years
Rarely documented
notes for 2 of 31 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
31 releases · first in 2015
3 releases in the last 12 months
see the full history below
Release timeline
31 releases · Oct 2015 to Apr 2026Releases
latest 31-
2.0.021 Apr 2026Release notes
Open source →What's Changed
- fix: use PR workflow for dev version bump in tag-release by @brayniac in #2
- chore: bump to 1.0.1-alpha.0 for next development iteration by @brayniac in #3
- doc(upgrade): add migration guide for v0.10.x by @michaelcoll in #6
- feat: no_std support by @zeon256 in #5
- feat: add try_wait_n for atomic multi-token acquisition by @brayniac in #8
- fix: no_std ergonomic follow-ups to #5 by @brayniac in #9
- feat: sub-Hz rate limits and 2.0 API polish by @brayniac in #10
- release: v2.0.0 by @brayniac in #11
New Contributors
- @michaelcoll made their first contribution in #6
- @zeon256 made their first contribution in #5
Full Changelog: v1.0.0...v2.0.0
Release notes
Open source →Added
no_stdsupport via a newClocktrait (StdClockis the default under thestdfeature).Ratelimiter::try_wait_n(n)for atomic multi-token acquisition.TryWaitErrordistinguishingInsufficient(Duration)fromExceedsCapacity.- Configurable rate period:
Builder::period,Ratelimiter::period/set_period/set_rate_per. Enables sub-Hz rates. impl Default for StdClock.
Changed
RatelimiterandBuilderare generic overClock;Cdefaults toStdClockunderstd.try_waitnow returnsResult<(), TryWaitError>.ErrorandTryWaitErrorare#[non_exhaustive].- New
Error::PeriodTooShortvariant.
Fixed
- Sub-second and sub-Hz rate limits (regression from 1.0.0).
try_waitno longer spins whenmax_tokens == 0; returnsExceedsCapacity.
-
1.0.020 Mar 2026Release notes
Open source →What's Changed
New Contributors
Full Changelog: https://github.com/iopsystems/ratelimit/commits/v1.0.0
-
0.10.120 Mar 2026Nothing published for this version
-
0.10.031 Oct 2024Nothing published for this version
-
0.9.115 Apr 2024Nothing published for this version
-
0.9.015 Dec 2023Nothing published for this version
-
0.8.015 Dec 2023Nothing published for this version
-
0.7.128 Sep 2023Nothing published for this version
-
0.7.002 Jun 2023Nothing published for this version
-
0.5.116 Jan 2023Nothing published for this version
-
0.5.015 Jan 2023Nothing published for this version
-
0.4.429 Oct 2018Nothing published for this version
-
0.4.317 Nov 2017Nothing published for this version
-
0.4.202 Sep 2017Nothing published for this version
-
0.4.103 Jun 2017Nothing published for this version
-
0.4.003 May 2017Nothing published for this version
-
0.3.106 Aug 2016Nothing published for this version
-
0.3.005 Aug 2016Nothing published for this version
-
0.2.417 Mar 2016Nothing published for this version
-
0.2.315 Mar 2016Nothing published for this version
-
0.2.216 Feb 2016Nothing published for this version
-
0.2.118 Jan 2016Nothing published for this version
-
0.2.017 Jan 2016Nothing published for this version
-
0.1.909 Nov 2015Nothing published for this version
-
0.1.801 Nov 2015Nothing published for this version
-
0.1.728 Oct 2015Nothing published for this version
-
0.1.626 Oct 2015Nothing published for this version
-
0.1.525 Oct 2015Nothing published for this version
-
0.1.424 Oct 2015Nothing published for this version
-
0.1.302 Oct 2015Nothing published for this version
-
0.1.202 Oct 2015Nothing published for this version