Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop unused dep or make them optional #4124

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down Expand Up @@ -122,7 +122,6 @@ trycmd = "0.15.0"

[build-dependencies]
platforms.workspace = true
regex = "1"

[lints]
workspace = true
Expand Down
12 changes: 9 additions & 3 deletions download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -24,15 +30,15 @@ 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]
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
Loading