PackageTrack
Sign in Get early access

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 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 2.0.0 21 Apr 2026
    Release notes

    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

    Full Changelog: v1.0.0...v2.0.0

    Open source →
    Release notes

    Added

    • no_std support via a new Clock trait (StdClock is the default under the std feature).
    • Ratelimiter::try_wait_n(n) for atomic multi-token acquisition.
    • TryWaitError distinguishing Insufficient(Duration) from ExceedsCapacity.
    • Configurable rate period: Builder::period, Ratelimiter::period / set_period / set_rate_per. Enables sub-Hz rates.
    • impl Default for StdClock.

    Changed

    • Ratelimiter and Builder are generic over Clock; C defaults to StdClock under std.
    • try_wait now returns Result<(), TryWaitError>.
    • Error and TryWaitError are #[non_exhaustive].
    • New Error::PeriodTooShort variant.

    Fixed

    • Sub-second and sub-Hz rate limits (regression from 1.0.0).
    • try_wait no longer spins when max_tokens == 0; returns ExceedsCapacity.
    Open source →
  2. 1.0.0 20 Mar 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: https://github.com/iopsystems/ratelimit/commits/v1.0.0

    Open source →
    Release notes

    First release with changelog.

    Open source →
  3. 0.10.1 20 Mar 2026

    Nothing published for this version

  4. 0.10.0 31 Oct 2024

    Nothing published for this version

  5. 0.9.1 15 Apr 2024

    Nothing published for this version

  6. 0.9.0 15 Dec 2023

    Nothing published for this version

  7. 0.8.0 15 Dec 2023

    Nothing published for this version

  8. 0.7.1 28 Sep 2023

    Nothing published for this version

  9. 0.7.0 02 Jun 2023

    Nothing published for this version

  10. 0.5.1 16 Jan 2023

    Nothing published for this version

  11. 0.5.0 15 Jan 2023

    Nothing published for this version

  12. 0.4.4 29 Oct 2018

    Nothing published for this version

  13. 0.4.3 17 Nov 2017

    Nothing published for this version

  14. 0.4.2 02 Sep 2017

    Nothing published for this version

  15. 0.4.1 03 Jun 2017

    Nothing published for this version

  16. 0.4.0 03 May 2017

    Nothing published for this version

  17. 0.3.1 06 Aug 2016

    Nothing published for this version

  18. 0.3.0 05 Aug 2016

    Nothing published for this version

  19. 0.2.4 17 Mar 2016

    Nothing published for this version

  20. 0.2.3 15 Mar 2016

    Nothing published for this version

  21. 0.2.2 16 Feb 2016

    Nothing published for this version

  22. 0.2.1 18 Jan 2016

    Nothing published for this version

  23. 0.2.0 17 Jan 2016

    Nothing published for this version

  24. 0.1.9 09 Nov 2015

    Nothing published for this version

  25. 0.1.8 01 Nov 2015

    Nothing published for this version

  26. 0.1.7 28 Oct 2015

    Nothing published for this version

  27. 0.1.6 26 Oct 2015

    Nothing published for this version

  28. 0.1.5 25 Oct 2015

    Nothing published for this version

  29. 0.1.4 24 Oct 2015

    Nothing published for this version

  30. 0.1.3 02 Oct 2015

    Nothing published for this version

  31. 0.1.2 02 Oct 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive