Skip to content

Commit 165f2bf

Browse files
authored
Merge pull request #3233 from rbtcollins/workspace-inheritance
Use workspace inheritance
2 parents 90a01dd + 96572ff commit 165f2bf

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

Cargo.toml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ no-self-update = []
2626

2727
# Sorted by alphabetic order
2828
[dependencies]
29-
anyhow = "1.0.69"
29+
anyhow.workspace = true
3030
cfg-if = "1.0"
3131
chrono = "0.4"
3232
clap = {version = "2", features = ["wrap_help"]}
@@ -36,12 +36,13 @@ enum-map = "2.4.2"
3636
flate2 = "1"
3737
git-testament = "0.2"
3838
home = "0.5.4"
39-
lazy_static = "1"
39+
lazy_static.workspace = true
4040
libc = "0.2"
4141
num_cpus = "1.15"
4242
opener = "0.5.2"
43-
# Used by `curl` or `reqwest` backend although it isn't imported
44-
# by our rustup.
43+
# Used by `curl` or `reqwest` backend although it isn't imported by our rustup :
44+
# this allows controlling the vendoring status without exposing the presence of
45+
# the download crate.
4546
openssl = {version = "0.10", optional = true}
4647
pulldown-cmark = {version = "0.9", default-features = false}
4748
rand = "0.8"
@@ -56,13 +57,13 @@ sha2 = "0.10"
5657
sharded-slab = "0.1.1"
5758
strsim = "0.10"
5859
tar = "0.4.26"
59-
tempfile = "3.1"
60+
tempfile.workspace = true
6061
# FIXME(issue #1818, #1826, and friends)
6162
term = "=0.7.0"
62-
thiserror = "1.0"
63+
thiserror.workspace = true
6364
threadpool = "1"
6465
toml = "0.5"
65-
url = "2.3"
66+
url.workspace = true
6667
wait-timeout = "0.2"
6768
xz2 = "0.1.3"
6869
zstd = "0.12"
@@ -119,6 +120,13 @@ regex = "1"
119120
[workspace]
120121
members = ["download"]
121122

123+
[workspace.dependencies]
124+
anyhow = "1.0.69"
125+
lazy_static = "1"
126+
tempfile = "3.1"
127+
thiserror = "1.0"
128+
url = "2.3"
129+
122130
[lib]
123131
name = "rustup"
124132
path = "src/lib.rs"

download/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ reqwest-default-tls = ["reqwest/default-tls"]
1616
reqwest-rustls-tls = ["reqwest/rustls-tls-native-roots"]
1717

1818
[dependencies]
19-
anyhow = "1.0.69"
19+
anyhow.workspace = true
2020
curl = {version = "0.4.11", optional = true}
2121
env_proxy = {version = "0.4.1", optional = true}
22-
lazy_static = {version = "1.0", optional = true}
22+
lazy_static = {workspace=true, optional = true}
2323
reqwest = {version = "0.11", default-features = false, features = ["blocking", "gzip", "socks"], optional = true}
24-
thiserror = "1.0"
25-
url = "2.3"
24+
thiserror.workspace = true
25+
url.workspace = true
2626

2727
[dev-dependencies]
2828
hyper = {version = "0.14", default-features = false, features = ["tcp", "server"]}
29-
tempfile = "3"
29+
tempfile.workspace = true
3030
tokio = {version = "1", default-features = false, features = ["sync"]}

0 commit comments

Comments
 (0)