Skip to content

Commit fb4b60b

Browse files
committed
Use uniform dependency specification style
1 parent 01bc242 commit fb4b60b

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

Cargo.toml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,17 @@ lazy_static.workspace = true
6464
libc = "0.2"
6565
once_cell = { workspace = true, optional = true }
6666
opener = "0.6.0"
67+
# `openssl` is used by `curl` or `reqwest` backend although it isn't imported by rustup: this
68+
# allows controlling the vendoring status without exposing the presence of the download crate.
69+
openssl = { version = "0.10", optional = true }
6770
opentelemetry = { workspace = true, optional = true }
6871
opentelemetry-otlp = { workspace = true, optional = true }
6972
pulldown-cmark = { version = "0.9", default-features = false }
7073
rand = "0.8"
7174
regex = "1"
7275
remove_dir_all = { version = "0.8.1", features = ["parallel"] }
76+
retry = { version = "2", default-features = false, features = ["random"] }
77+
rs_tracing = { version = "1.1", features = ["rs_tracing"] }
7378
same-file = "1"
7479
scopeguard = "1"
7580
semver = "1.0"
@@ -85,32 +90,14 @@ threadpool = "1"
8590
tokio = { workspace = true, optional = true }
8691
toml = "0.8"
8792
tracing-opentelemetry = { workspace = true, optional = true }
88-
tracing-subscriber = { workspace = true, optional = true, features = [
89-
"env-filter",
90-
] }
93+
tracing-subscriber = { workspace = true, optional = true, features = ["env-filter"] }
9194
tracing.workspace = true
9295
url.workspace = true
9396
wait-timeout = "0.2"
9497
walkdir = { workspace = true, optional = true }
9598
xz2 = "0.1.3"
9699
zstd = "0.13"
97100

98-
[dependencies.openssl]
99-
# Used by `curl` or `reqwest` backend although it isn't imported by our rustup :
100-
# this allows controlling the vendoring status without exposing the presence of
101-
# the download crate.
102-
optional = true
103-
version = "0.10"
104-
105-
[dependencies.retry]
106-
default-features = false
107-
features = ["random"]
108-
version = "2.0.0"
109-
110-
[dependencies.rs_tracing]
111-
features = ["rs_tracing"]
112-
version = "1.1.0"
113-
114101
[target."cfg(windows)".dependencies]
115102
cc = "1"
116103
winreg = "0.51"
@@ -155,7 +142,6 @@ features = [
155142
]
156143
version = "0.48.0"
157144

158-
159145
[dev-dependencies]
160146
enum-map = "2.5.0"
161147
once_cell.workspace = true
@@ -185,9 +171,7 @@ rustup-macros = { path = "rustup-macros" }
185171
tempfile = "3.8"
186172
termcolor = "1.2"
187173
thiserror = "1.0"
188-
tokio = { version = "1.26.0", default-features = false, features = [
189-
"rt-multi-thread",
190-
] }
174+
tokio = { version = "1.26.0", default-features = false, features = ["rt-multi-thread"] }
191175
tracing = "0.1"
192176
tracing-opentelemetry = { version = "0.21.0" }
193177
tracing-subscriber = "0.3.16"

download/Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ anyhow.workspace = true
2020
curl = { version = "0.4.44", optional = true }
2121
env_proxy = { version = "0.4.1", optional = true }
2222
lazy_static = { workspace = true, optional = true }
23-
reqwest = { version = "0.11", default-features = false, features = [
24-
"blocking",
25-
"gzip",
26-
"socks",
27-
], optional = true }
23+
reqwest = { version = "0.11", default-features = false, features = ["blocking", "gzip", "socks"], optional = true }
2824
thiserror.workspace = true
2925
url.workspace = true
3026

3127
[dev-dependencies]
32-
hyper = { version = "0.14", default-features = false, features = [
33-
"tcp",
34-
"server",
35-
] }
28+
hyper = { version = "0.14", default-features = false, features = ["tcp", "server"] }
3629
tempfile.workspace = true
3730
tokio = { workspace = true, default-features = false, features = ["sync"] }

0 commit comments

Comments
 (0)