119 lines
2.6 KiB
TOML
119 lines
2.6 KiB
TOML
# 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 = "2024"
|
|
rust-version = "1.85"
|
|
name = "backon"
|
|
version = "1.6.0"
|
|
build = false
|
|
autolib = 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"
|
|
resolver = "2"
|
|
|
|
[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",
|
|
]
|
|
|
|
[features]
|
|
default = [
|
|
"std",
|
|
"std-blocking-sleep",
|
|
"tokio-sleep",
|
|
"gloo-timers-sleep",
|
|
]
|
|
embassy-sleep = ["embassy-time"]
|
|
futures-timer-sleep = ["futures-timer"]
|
|
gloo-timers-sleep = ["gloo-timers/futures"]
|
|
std = ["fastrand/std"]
|
|
std-blocking-sleep = []
|
|
tokio-sleep = ["tokio/time"]
|
|
|
|
[lib]
|
|
name = "backon"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies.embassy-time]
|
|
version = "0.5"
|
|
optional = true
|
|
|
|
[dependencies.fastrand]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dev-dependencies.anyhow]
|
|
version = "1"
|
|
|
|
[dev-dependencies.reqwest]
|
|
version = "0.12"
|
|
|
|
[dev-dependencies.spin]
|
|
version = "0.10.0"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-timer]
|
|
version = "3.0.3"
|
|
optional = true
|
|
|
|
[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.futures-timer]
|
|
version = "3.0.3"
|
|
features = ["gloo-timers"]
|
|
optional = true
|
|
|
|
[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"
|