Skip to content

fix(deps): update rust crate backon to v1

renovate requested to merge renovate/backon-1.x into main

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

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/Xuanwo/backon/compare/v1.2.0...v1.3.0

v1.2.0

Compare Source

  • 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

New Contributors

Full Changelog: https://github.com/Xuanwo/backon/compare/v1.1.0...v1.2.0

v1.1.0

Compare Source

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

Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.2...v1.1.0

v1.0.2

Compare Source

What's Changed

Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.1...v1.0.2

v1.0.1

Compare Source

What's Changed

Full Changelog: https://github.com/Xuanwo/backon/compare/v1.0.0...v1.0.1

v1.0.0

Compare Source

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

Full Changelog: https://github.com/Xuanwo/backon/compare/v0.5.0...v1.0.0

v0.5.0

Compare Source

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

New Contributors

Full Changelog: https://github.com/Xuanwo/backon/compare/v0.4.4...v0.5.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by renovate

Merge request reports

Loading