NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #2249 most downloaded on crates.io
Utilities for retrying operations that can fail.
Last release 8 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
Various constructors are now annotated with #[must_use] .
Improvements:
#[must_use].const contexts.Bug fixes:
jitter function modifies the input Duration atomically rather than to seconds and nanoseconds separately, resulting in less predictable jitter.New constructors, retry::Range::{try_from_millis_exclusive, try_from_millis_inclusive} , offering non-panicking variants of the existing constructors.
New features:
retry::delay::Range::{try_from_millis_exclusive, try_from_millis_inclusive}, offering non-panicking variants of the existing constructors.Dependencies:
rand 0.8 to 0.9.One column per quarter.
retry::Error is now a struct with public fields instead of an enum with a useless Internal variant. (See #38 and #42 .)
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:
Bump the version of rand due to RUSTSEC-2021-0023 .
Improvements:
retry::OperationResult now has predicate methods to check for a specific variant:
New features:
retry::OperationResult now has predicate methods to check for a specific variant:
is_okis_retryis_errRemoved async code that is not used.
The features of the crate involving randomness are now behind the "random" Cargo feature. This feature is enabled for backwards compatibility, but can
Improvements:
retry::Exponential::from_millis_with_factor is added to support a configurable multiplication factor for exponential delays.
New features:
retry::delay::Exponential::from_millis_with_factor is added to support a configurable multiplication factor for exponential delays.retry 's API is now stable for the 1.0 series.
retry's API is now stable for the 1.0 series.
New features:
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>>.The Fixed delay now implements From<Duration> .
Improvements:
Fixed delay now implements From<Duration>.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →