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
Releases
latest 7-
0.5.223 Jun 2025Release notes
Open source →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.
Release notes
Open source →Changed
- Moved the
futuresdependency todev-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.
-
0.5.123 Aug 2023 -
0.5.001 Sep 2022Release notes
Open source →Changed
- Move to
pin-project-liteinstead ofpin-project(#21) RetryFuture::on_retryhas additional type parameter and trait bound (#22)
Fixed
- Fixed inference issues with
RetryFuture::on_retry(#22)
- Move to
-
0.4.022 Jun 2021Release notes
Open source →Added
BackoffStrategyis 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
BackoffStrategyis now generic over the lifetime of the error given toBackoffStrategy::delay.- The output of the future returned by
OnRetry::on_retryhas been fixed to(). As the future is given totokio::spawnrequiring()is nicer.
Deprecated
- N/A
Removed
CustomBackoffStrategyhas been removed sinceBackoffStrategyis 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
RetryFutureno longer requires the error type to implementDisplay.
Security
- N/A
-
0.3.007 Jan 2021Release notes
Open source →Added
- Support for Tokio 1.0 added. Tokio 1.0 support is on by default or by enabling the
tokio-1feature. - Add
RetryFutureConfigwhich let you retry several futures in the same way. - All backoff strategy types now implement
CopyandClone.
Removed
- Support for Tokio 0.3 has been removed. 0.2 is still supported.
Fixed
CustomBackoffStrategynow implementsDebugregardless of its type parameter.
- Support for Tokio 1.0 added. Tokio 1.0 support is on by default or by enabling the
-
0.2.025 Nov 2020Release notes
Open source →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"] }.
- 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
-
0.1.023 Nov 2020