PackageTrack
Sign in Get early access

tryhard

Easily retry futures

0.5.2 13M downloads/mo #2658 most downloaded on crates.io EmbarkStudios/tryhard

What this package is like to depend on

Last release 1 years ago

23 Jun 2025

Ships fairly regularly

a new release about every 12 months

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

7 releases · first in 2020

0 releases in the last 12 months

see the full history below

Release timeline

7 releases · Nov 2020 to Jun 2025
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 7
  1. 0.5.2 23 Jun 2025
    Release notes

    0.5.2 - 2025-06-23

    Changed

    • Moved the futures dependency to dev-dependencies
    • MSRV is now 1.48. Since we don't have a stated MSRV policy and 1.48 is almost older than this crate, much less version 0.5.0, I am fine with doing this in a patch release.
    Open source →
    Release notes

    Changed

    • Moved the futures dependency to dev-dependencies
    • MSRV is now 1.48. Since we don't have a stated MSRV policy and 1.48 is almost older than this crate, much less version 0.5.0, I am fine with doing this in a patch release.
    Open source →
  2. 0.5.1 23 Aug 2023
    Release notes

    Fixed

    • Use saturating_mul instead of Mul (#27)
    Open source →
  3. 0.5.0 01 Sep 2022
    Release notes

    Changed

    • Move to pin-project-lite instead of pin-project (#21)
    • RetryFuture::on_retry has additional type parameter and trait bound (#22)

    Fixed

    • Fixed inference issues with RetryFuture::on_retry (#22)
    Open source →
  4. 0.4.0 22 Jun 2021
    Release notes

    Release version 0.4.0 (#19)

    Open source →
    Release notes

    Added

    • BackoffStrategy is now implemented directly for functions of the right type.
    • Explicit constructs have been added to each back-off strategy. This makes it possible to define a new strategy that wraps one of the types provided by tryhard.

    Changed

    • BackoffStrategy is now generic over the lifetime of the error given to BackoffStrategy::delay.
    • The output of the future returned by OnRetry::on_retry has been fixed to (). As the future is given to tokio::spawn requiring () is nicer.

    Deprecated

    • N/A

    Removed

    • CustomBackoffStrategy has been removed since BackoffStrategy is now implemented directly on functions of the right type.
    • Tokio 0.2 support has been removed. Tokio 1 is now the only version supported.

    Fixed

    • RetryFuture no longer requires the error type to implement Display.

    Security

    • N/A
    Open source →
  5. 0.3.0 07 Jan 2021
    Release notes

    Added

    • Support for Tokio 1.0 added. Tokio 1.0 support is on by default or by enabling the tokio-1 feature.
    • Add RetryFutureConfig which let you retry several futures in the same way.
    • All backoff strategy types now implement Copy and Clone.

    Removed

    • Support for Tokio 0.3 has been removed. 0.2 is still supported.

    Fixed

    • CustomBackoffStrategy now implements Debug regardless of its type parameter.
    Open source →
  6. 0.2.0 25 Nov 2020
    Release notes

    Changed

    • Changed from using Tokio 0.2 by default to using Tokio 0.3. You can switch back to Tokio 0.2 by declaring your dependency with tryhard = { version = "your-version", default-features = false, features = ["tokio-02"] }.
    Open source →
  7. 0.1.0 23 Nov 2020
    Release notes

    Generalize performing stuff before retries

    Open source →
    Release notes

    Added

    • First release!
    Open source →

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