fix(deps): update rust crate backon to v1
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
backon | dependencies | major |
0.4.4 -> 1.0.0
|
Release Notes
Xuanwo/backon (backon)
v1.3.0
What's Changed
- refactor: Remove the Debug requirement of Backoff by @Xuanwo in https://github.com/Xuanwo/backon/pull/141
- feat: Implement BackoffBuilder for Backoff itself by @Xuanwo in https://github.com/Xuanwo/backon/pull/142
- docs: mention sleep() in blocking retry examples by @SteveLauC in https://github.com/Xuanwo/backon/pull/143
- docs: document custom Sleeper impl by @SteveLauC in https://github.com/Xuanwo/backon/pull/147
- feat: Allow users to use &XxxBuilder by @Xuanwo in https://github.com/Xuanwo/backon/pull/148
- chore: Polish impl of saturating_mul by @Xuanwo in https://github.com/Xuanwo/backon/pull/151
- docs: Backon is
adaptable
by @Xuanwo in https://github.com/Xuanwo/backon/pull/155 - ci: Fix wasm unit test by @Xuanwo in https://github.com/Xuanwo/backon/pull/163
- Include license file in published crate by @ankane in https://github.com/Xuanwo/backon/pull/162
- fix: doc for
with_max_times
by @shikhar in https://github.com/Xuanwo/backon/pull/161 - feat: builder_without_max_(times|delay) by @nardoor in https://github.com/Xuanwo/backon/pull/160
- Bump version to 1.3.0 by @Xuanwo in https://github.com/Xuanwo/backon/pull/164
New Contributors
- @SteveLauC made their first contribution in https://github.com/Xuanwo/backon/pull/143
- @ankane made their first contribution in https://github.com/Xuanwo/backon/pull/162
- @shikhar made their first contribution in https://github.com/Xuanwo/backon/pull/161
- @nardoor made their first contribution in https://github.com/Xuanwo/backon/pull/160
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.2.0...v1.3.0
v1.2.0
- backon is now available under
no_std
. - backon now supports use users own blocking sleeper too.
- backon now raises build time error if sleeper not provided.
What's Changed
- fix: NoopSleeper should implement default by @Xuanwo in https://github.com/Xuanwo/backon/pull/135
- fix: compile to fail when using DefaultSleeper with no features enabled by @bdbai in https://github.com/Xuanwo/backon/pull/136
- docs: Polish MaybeSleeper names by @Xuanwo in https://github.com/Xuanwo/backon/pull/137
- feat: Add blocking sleeper for blocking retry by @Xuanwo in https://github.com/Xuanwo/backon/pull/138
- Add no_std flag, hide blocking retrys behind std flag by @adrian-kong in https://github.com/Xuanwo/backon/pull/125
- Bump to version 1.2.0 by @Xuanwo in https://github.com/Xuanwo/backon/pull/139
New Contributors
- @bdbai made their first contribution in https://github.com/Xuanwo/backon/pull/136
- @adrian-kong made their first contribution in https://github.com/Xuanwo/backon/pull/125
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.1.0...v1.2.0
v1.1.0
A Letter to BackON Users
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
What's Changed
- docs: Polish display on the first page of lib.rs by @Xuanwo in https://github.com/Xuanwo/backon/pull/122
- chore: Make backon a workspace by @Xuanwo in https://github.com/Xuanwo/backon/pull/124
- docs: Add section for sleeper by @Xuanwo in https://github.com/Xuanwo/backon/pull/130
- docs: Add sleep in README by @Xuanwo in https://github.com/Xuanwo/backon/pull/131
- refactor: Enable default features to avoid unexpected panic by @Xuanwo in https://github.com/Xuanwo/backon/pull/132
- backon: Bump to version 1.1.0 by @Xuanwo in https://github.com/Xuanwo/backon/pull/133
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.2...v1.1.0
v1.0.2
What's Changed
- docs: Polish desc of backon by @Xuanwo in https://github.com/Xuanwo/backon/pull/116
- docs: Add a new example for retry inside
&mut self
function by @Xuanwo in https://github.com/Xuanwo/backon/pull/118 - docs: Polish all documents by @Xuanwo in https://github.com/Xuanwo/backon/pull/119
- Bump to version 1.0.2 by @Xuanwo in https://github.com/Xuanwo/backon/pull/120
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.1...v1.0.2
v1.0.1
What's Changed
- chore: Allow build blocking in wasm32 by @Xuanwo in https://github.com/Xuanwo/backon/pull/113
- Bump version to 1.0.1 by @Xuanwo in https://github.com/Xuanwo/backon/pull/114
Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.0...v1.0.1
v1.0.0
Upgrade
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.
What's Changed
- fix: Expose struct out to generate API docs by @Xuanwo in https://github.com/Xuanwo/backon/pull/102
- refactor: Move all backoff in one mod by @Xuanwo in https://github.com/Xuanwo/backon/pull/103
- refactor: Take ownership of builder instead by @Xuanwo in https://github.com/Xuanwo/backon/pull/104
- docs: Re-position of backon by @Xuanwo in https://github.com/Xuanwo/backon/pull/106
- docs: Add a logo for backon by @Xuanwo in https://github.com/Xuanwo/backon/pull/107
- docs: Polish vision and docs by @Xuanwo in https://github.com/Xuanwo/backon/pull/108
- docs: Refactor examples by @Xuanwo in https://github.com/Xuanwo/backon/pull/109
- chore: Establish MSRV as 1.70 by @Xuanwo in https://github.com/Xuanwo/backon/pull/110
- Bump to version 1.0 by @Xuanwo in https://github.com/Xuanwo/backon/pull/111
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.5.0...v1.0.0
v0.5.0
Upgrade
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.
What's Changed
- Remove duplicate example, point to examples on docs index page by @matildasmeds in https://github.com/Xuanwo/backon/pull/84
- ci: Use macos-latest for test by @Xuanwo in https://github.com/Xuanwo/backon/pull/87
- feat: Remove dependences on pin_project and futures_core by @Xuanwo in https://github.com/Xuanwo/backon/pull/86
- docs: Add an example for sqlx by @Xuanwo in https://github.com/Xuanwo/backon/pull/91
- Use wasm-compatible sleep if compiled for wasm32 by @wackazong in https://github.com/Xuanwo/backon/pull/92
- feat: Allow user to provide sleeper by @Xuanwo in https://github.com/Xuanwo/backon/pull/93
- Bump to version 0.5.0 by @Xuanwo in https://github.com/Xuanwo/backon/pull/94
New Contributors
- @matildasmeds made their first contribution in https://github.com/Xuanwo/backon/pull/84
- @wackazong made their first contribution in https://github.com/Xuanwo/backon/pull/92
Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.4...v0.5.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.