diff --git a/Cargo.lock b/Cargo.lock index 3a2bf122..0b179d0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -349,17 +349,6 @@ dependencies = [ "paste", ] -[[package]] -name = "backoff" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" -dependencies = [ - "getrandom", - "instant", - "rand", -] - [[package]] name = "backon" version = "1.2.0" @@ -2083,15 +2072,6 @@ dependencies = [ "similar", ] -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", -] - [[package]] name = "integer-sqrt" version = "0.1.5" @@ -3585,7 +3565,7 @@ dependencies = [ "aho-corasick", "anyhow", "aws-lc-sys", - "backoff", + "backon", "bytes", "bytesize", "clap", diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 335c9d27..fbe420c1 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -42,7 +42,7 @@ opendal = [ "tokio/rt-multi-thread", "dep:typed-path", ] -rest = ["dep:reqwest", "dep:backoff"] +rest = ["dep:reqwest", "dep:backon"] rclone = ["rest", "dep:rand", "dep:semver"] [dependencies] @@ -78,7 +78,7 @@ aho-corasick = { workspace = true } walkdir = "2.5.0" # rest backend -backoff = { version = "0.4.0", optional = true } +backon = { version = "1.2.0", optional = true } reqwest = { version = "0.12.8", default-features = false, features = ["json", "rustls-tls-native-roots", "stream", "blocking"], optional = true } # rclone backend