[dependencies.async_std_1]
optional = true
package = "async-std"
version = "1.9"
[dependencies.futures-core]
default-features = false
optional = true
version = "0.3.8"
[dependencies.getrandom]
version = "0.3"
[dependencies.pin-project-lite]
optional = true
version = "0.2.7"
[dependencies.rand]
version = "0.9"
[dependencies.tokio_1]
features = ["time"]
optional = true
package = "tokio"
version = "1.0"
[dev-dependencies.async_std_1]
features = ["attributes"]
package = "async-std"
version = "1.6"
[dev-dependencies.futures-executor]
version = "0.3"
[dev-dependencies.reqwest]
features = ["json", "blocking"]
version = "0.12"
[[example]]
name = "async"
path = "examples/async.rs"
required-features = ["tokio"]
[[example]]
name = "permanent_error"
path = "examples/permanent_error.rs"
[[example]]
name = "retry"
path = "examples/retry.rs"
[features]
async-std = ["futures", "async_std_1"]
default = []
futures = ["futures-core", "pin-project-lite"]
tokio = ["futures", "tokio_1"]
[lib]
name = "maybe_backoff"
path = "src/lib.rs"
[package]
authors = ["Tibor Benke <ihrwein@gmail.com>", "Aleksey Kuznetsov <zummenix@gmail.com>", "Andrew Banchich <13824577+andrewbanchich@users.noreply.github.com>", "Anthony Dodd <dodd.anthonyjosiah@gmail.com>", "Armin Ronacher <armin.ronacher@active-4.com>", "clux <sszynrae@gmail.com>", "Daniel Cormier <dcormier@users.noreply.github.com>", "Jakub Panek <me@panekj.dev>", "Jonas Platte <jplatte+git@posteo.de>", "Noah <33094578+coolreader18@users.noreply.github.com>", "Shekhinah Memmel <she@khinah.xyz>", "Stas <iamlolylol@gmail.com>", "Stepan Artamonov <stiartamonov@gmail.com>", "Teo Klestrup Röijezon <teo@nullable.se>", "tyranron <tyranron@gmail.com>", "Robert Krahn <robert@hyper.video>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming"]
description = "Retry operations with exponential backoff policy."
documentation = "https://docs.rs/maybe-backoff"
edition = "2021"
exclude = ["Cargo.lock"]
homepage = "https://github.com/hypervideo/backoff"
license = "MIT/Apache-2.0"
name = "maybe-backoff"
readme = "README.md"
repository = "https://github.com/hypervideo/backoff"
version = "0.5.0"
[package.metadata.docs.rs]
features = ["tokio"]
rustdoc-args = ["--cfg", "docsrs"]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tokio_1]
features = ["macros", "time", "rt-multi-thread"]
package = "tokio"
version = "1.0"
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
features = ["wasm_js"]
version = "0.3"
[target.'cfg(target_family = "wasm")'.dependencies.gloo]
default-features = false
features = ["timers", "futures"]
version = "0.11"
[target.'cfg(target_family = "wasm")'.dependencies.web-time]
version = "1.1.0"
[target.'cfg(target_family = "wasm")'.dev-dependencies.tokio_1]
features = ["macros", "time"]
package = "tokio"
version = "1.0"
[[test]]
name = "exponential"
path = "tests/exponential.rs"
[[test]]
name = "retry"
path = "tests/retry.rs"