# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "backon" version = "1.3.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Make retry like a built-in feature provided by Rust." documentation = "https://docs.rs/backon" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/Xuanwo/backon" [package.metadata.docs.rs] all-features = true targets = [ "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "wasm32-unknown-unknown", ] [lib] name = "backon" path = "src/lib.rs" [dependencies.fastrand] version = "2" [dev-dependencies.anyhow] version = "1" [dev-dependencies.reqwest] version = "0.12" [dev-dependencies.spin] version = "0.9.8" [features] default = [ "std-blocking-sleep", "tokio-sleep", "gloo-timers-sleep", ] gloo-timers-sleep = [ "dep:gloo-timers", "gloo-timers?/futures", ] std-blocking-sleep = [] tokio-sleep = [ "dep:tokio", "tokio?/time", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio] version = "1" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.sqlx] version = "0.8.0" features = [ "runtime-tokio", "sqlite", ] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio] version = "1" features = [ "time", "rt", "macros", "sync", "rt-multi-thread", ] [target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers] version = "0.3" optional = true [target.'cfg(target_arch = "wasm32")'.dev-dependencies.tokio] version = "1" features = [ "macros", "rt", "sync", ] default-features = false [target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test] version = "0.3"