NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #894 most downloaded on crates.io
Make retry like a built-in feature provided by Rust.
Latest stable
1.6.0
Last release 1 years ago
18 Oct 2025
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 24 of 25 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
25 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/Xuanwo/backon/pull/209
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.5.2...v1.6.0
docs: Add CLAUDE.md in repo by @Xuanwo in https://github.com/Xuanwo/backon/pull/202
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.5.1...v1.5.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
docs: add wasm32 demo by @XmchxUp in https://github.com/Xuanwo/backon/pull/196
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.5.0...v1.5.1
chore: Format code by @Xuanwo in https://github.com/Xuanwo/backon/pull/191
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.4.1...v1.5.0
jitter: Make jitter range to current_delay instead of min_delay by @DanielShaulov in https://github.com/Xuanwo/backon/pull/184
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.4.0...v1.4.1
chore: Remove unnecessary optional feature selectors by @wackazong in https://github.com/Xuanwo/backon/pull/167
futures-timer by @NumberFour8 in https://github.com/Xuanwo/backon/pull/154Full Changelog: https://github.com/Xuanwo/backon/compare/v1.3.0...v1.4.0
refactor: Remove the Debug requirement of Backoff by @Xuanwo in https://github.com/Xuanwo/backon/pull/141
adaptable by @Xuanwo in https://github.com/Xuanwo/backon/pull/155with_max_times by @shikhar in https://github.com/Xuanwo/backon/pull/161Full Changelog: https://github.com/Xuanwo/backon/compare/v1.2.0...v1.3.0
backon is now available under no_std.
no_std.Full Changelog: https://github.com/Xuanwo/backon/compare/v1.1.0...v1.2.0
Thank you very much for using BackON!
Hello everyone,
Thank you very much for using BackON!
Before releasing version 1.0.0, I thought it would be better to let users choose their own sleeper implementations, so I didn't enable them by default. However, many users encountered runtime panics. I apologize for not finding a solution that meets all requirements simultaneously: no API breaks, allowing sleeper passing at runtime, and no extra cost.
So in version 1.1.0, I have added tokio-sleeper and gloo-timers-sleep to the default feature. This change will make BackON behave like version 0.4.4, allowing users to upgrade without adding new features. Additionally, I have moved the panic to occur earlier during the poll feature instead of during the sleep call. This makes it easier to catch issues during development rather than at runtime. Furthermore, we will only panic during the debug profile and do nothing in the release profile. This should protect users from panics even in the worst-case scenarios.
Please let me know if you have better solutions! Thanks in advance!
Xuanwo
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.2...v1.1.0
docs: Polish desc of backon by @Xuanwo in https://github.com/Xuanwo/backon/pull/116
&mut self function by @Xuanwo in https://github.com/Xuanwo/backon/pull/118Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.1...v1.0.2
chore: Allow build blocking in wasm32 by @Xuanwo in https://github.com/Xuanwo/backon/pull/113
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.0...v1.0.1
The first release of backon-macros , enjoy!
The first release of backon-macros, enjoy!
Since 1.0.0, backon Retry doesn't take a reference of builder anymore:
+ your_fn.retry(ExponentialBuilder::default()).await;
- your_fn.retry(&ExponentialBuilder::default()).await;
Since version 0.5.0, backon no longer directly depends on tokio. Instead, users can now provide their own sleep implementation.
For example:
use anyhow::Result;
use backon::ExponentialBuilder;
use backon::Retryable;
use std::future::ready;
async fn main() -> Result<()> {
let content = fetch
.retry(&ExponentialBuilder::default())
.sleep(tokio::time::sleep)
.await?;
Ok(())
}
To maintain the same behavior as before, please enable the tokio-sleep feature.
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.5.0...v1.0.0
Since version 0.5.0, backon no longer directly depends on tokio. Instead, users can now provide their own sleep implementation.
Since version 0.5.0, backon no longer directly depends on tokio. Instead, users can now provide their own sleep implementation.
For example:
use anyhow::Result;
use backon::ExponentialBuilder;
use backon::Retryable;
use std::future::ready;
async fn main() -> Result<()> {
let content = fetch
.retry(&ExponentialBuilder::default())
.sleep(tokio::time::sleep)
.await?;
Ok(())
}
To maintain the same behavior as before, please enable the tokio-sleep feature.
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.4...v0.5.0
docs: Update README by @Xuanwo in https://github.com/Xuanwo/backon/pull/76
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.3...v0.4.4
fix: revise the logic of exponential strategy by @yangmeilly in https://github.com/Xuanwo/backon/pull/71
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.2...v0.4.3
fix: Make backon work in wasm by @Xuanwo in https://github.com/Xuanwo/backon/pull/60
tokio::time::sleep usage by @vriesk in https://github.com/Xuanwo/backon/pull/66with_factor assert by @wcy-fdu in https://github.com/Xuanwo/backon/pull/68Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.1...v0.4.2
docs: Fix typo in examples by @Xuanwo in https://github.com/Xuanwo/backon/pull/40
FnMut(..) on notify and when by @BlueGlassBlock in https://github.com/Xuanwo/backon/pull/54Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.0...v0.4.1
refactor: Retryable should accept a reference by @Xuanwo in https://github.com/Xuanwo/backon/pull/33
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.3.1...v0.4.0
feat: Allow clone on backoff builder by @Xuanwo in https://github.com/Xuanwo/backon/pull/30
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.3.0...v0.3.1
chore(deps): bump Swatinem/rust-cache from 1 to 2 by @dependabot in https://github.com/Xuanwo/backon/pull/24
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.2.0...v0.3.0
refactor: Remove deprecated functions by @Xuanwo in https://github.com/Xuanwo/backon/pull/18
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.1.0...v0.2.0
fix typo in README.md by @chienguo in https://github.com/Xuanwo/backon/pull/12
with_error_fn into when by @wfxr in https://github.com/Xuanwo/backon/pull/15Full Changelog: https://github.com/Xuanwo/backon/compare/v0.0.2...v0.1.0
feat: Allow retryable error handles by @Xuanwo in https://github.com/Xuanwo/backon/pull/7
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.0.1...v0.0.2
feat: Implement retry support by @Xuanwo in https://github.com/Xuanwo/backon/pull/2
Full Changelog: https://github.com/Xuanwo/backon/commits/v0.0.1
Nothing published for this version
One column per quarter.