From d52fea48eb01fba7c9ecf9c485b4c2f8d519ca75 Mon Sep 17 00:00:00 2001 From: klensy Date: Sun, 22 Dec 2024 14:47:16 +0300 Subject: [PATCH] move deps around --- Cargo.toml | 3 +-- download/Cargo.toml | 12 +++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87d2a1a211..32805e3765 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,6 @@ remove_dir_all = { version = "1.0.0", features = ["parallel"] } retry = { version = "2", default-features = false, features = ["random"] } rs_tracing = { version = "1.1", features = ["rs_tracing"] } same-file = "1" -scopeguard = "1" semver = "1.0" serde = { version = "1.0", features = ["derive"] } sha2 = "0.10" @@ -89,6 +88,7 @@ zstd = "0.13" [target."cfg(windows)".dependencies] cc = "1" +scopeguard = "1" windows-registry = "0.3.0" windows-result = "0.2.0" @@ -122,7 +122,6 @@ trycmd = "0.15.0" [build-dependencies] platforms.workspace = true -regex = "1" [lints] workspace = true diff --git a/download/Cargo.toml b/download/Cargo.toml index 619cf5ee77..ed99ed2fdb 100644 --- a/download/Cargo.toml +++ b/download/Cargo.toml @@ -7,13 +7,19 @@ license.workspace = true [features] default = ["reqwest-rustls-tls", "reqwest-native-tls"] curl-backend = ["curl"] -reqwest-native-tls = ["reqwest/native-tls", "dep:reqwest", "dep:env_proxy"] +reqwest-native-tls = [ + "reqwest/native-tls", + "dep:reqwest", + "dep:env_proxy", + "dep:tokio-stream", +] reqwest-rustls-tls = [ "reqwest/rustls-tls-manual-roots-no-provider", "dep:env_proxy", "dep:reqwest", "dep:rustls", "dep:rustls-platform-verifier", + "dep:tokio-stream", ] [dependencies] @@ -24,8 +30,7 @@ reqwest = { version = "0.12", default-features = false, features = ["blocking", rustls = { version = "0.23", optional = true, default-features = false, features = ["logging", "aws_lc_rs", "tls12"] } rustls-platform-verifier = { version = "0.5", optional = true } thiserror.workspace = true -tokio = { workspace = true, default-features = false, features = ["sync"] } -tokio-stream.workspace = true +tokio-stream = { workspace = true, optional = true } url.workspace = true [dev-dependencies] @@ -33,6 +38,7 @@ http-body-util = "0.1.0" hyper = { version = "1.0", default-features = false, features = ["server", "http1"] } hyper-util = { version = "0.1.1", features = ["tokio"] } tempfile.workspace = true +tokio = { workspace = true, default-features = false, features = ["sync"] } [lints] workspace = true