PackageTrack
Sign in Get early access

retry

Utilities for retrying operations that can fail.

2.2.0 18M downloads/mo #2237 most downloaded on crates.io jimmycuadra/retry

What this package is like to depend on

Last release 6 months ago

31 Jan 2026

Release timing varies

gaps range from 2 weeks to 3.1 years

Most releases are documented

notes for 10 of 15 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

15 releases · first in 2015

1 release in the last 12 months

see the full history below

Release timeline

15 releases · Apr 2015 to Jan 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 2.2.0 31 Jan 2026
    Release notes

    Improvements:

    • Various constructors are now annotated with #[must_use].
    • Make simple functions available in const contexts.

    Bug fixes:

    • The jitter function modifies the input Duration atomically rather than to seconds and nanoseconds separately, resulting in less predictable jitter.
    Open source →
  2. 2.1.0 29 Mar 2025
    Release notes

    New features:

    • New constructors, retry::delay::Range::{try_from_millis_exclusive, try_from_millis_inclusive}, offering non-panicking variants of the existing constructors.

    Dependencies:

    • Updated from rand 0.8 to 0.9.
    Open source →
  3. 2.0.0 17 Sep 2022
    Release notes

    Breaking changes:

    • retry::Error is now a struct with public fields instead of an enum with a useless Internal variant. (See #38 and #42.)
    • retry::delay::Exponential::from_millis now uses an exponential backoff factor of 2.0 instead of whatever the initial delay is. If you want the old behavior, use retry::delay::Exponential::from_millis_with_base_factor instead. (See #31.)

    Improvements:

    Fixes:

    • Fixed a broken external link in the documentation.
    Open source →
  4. 1.3.1 02 Feb 2022
    Release notes

    Improvements:

    Open source →
  5. 1.3.0 14 Aug 2021
    Release notes

    New features:

    • retry::OperationResult now has predicate methods to check for a specific variant:
      • is_ok
      • is_retry
      • is_err
    Open source →
  6. 1.2.1 24 Apr 2021
    Release notes

    Improvements:

    • Removed async code that is not used. (#36)

    Bug fixes:

    • retry::Error now correctly displays the error it wraps when printed. (#35)
    Open source →
  7. 1.2.0 09 Dec 2020
    Release notes

    Improvements:

    • The features of the crate involving randomness are now behind the "random" Cargo feature. This feature is enabled for backwards compatibility, but can now be turned off via Cargo.toml to avoid installing the rand crates if they're not needed.
    Open source →
  8. 1.1.0 15 Aug 2020
    Release notes

    New features:

    • retry::delay::Exponential::from_millis_with_factor is added to support a configurable multiplication factor for exponential delays.
    Open source →
  9. 1.0.0 12 Jan 2020
    Release notes

    retry's API is now stable for the 1.0 series.

    New features:

    • Added a retry_with_index function that works like retry, but passes the number of the current try (as u64) as an argument to the supplied closure.

    Improvements:

    • retry::delay::{Exponential, Fibonacci} now implement From<std::time::Duration>.
    • retry::delay::Range now implements From<std::ops::Range<std::time::Duration>> and From<std::ops::RangeInclusive<std::time::Duration>>.
    Open source →
  10. 0.5.1 10 Jun 2019
    Release notes

    Improvements:

    • The Fixed delay now implements From<Duration>.
    Open source →
  11. 0.5.0 25 May 2019

    Nothing published for this version

  12. 0.4.0 02 Apr 2016

    Nothing published for this version

  13. 0.3.0 13 Apr 2015

    Nothing published for this version

  14. 0.2.0 12 Apr 2015

    Nothing published for this version

  15. 0.1.0 11 Apr 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