Skip to content

Commit f976a22

Browse files
committed
Update a slew of dependencies
1 parent 4ae89ae commit f976a22

File tree

11 files changed

+585
-417
lines changed

11 files changed

+585
-417
lines changed

Cargo.lock

Lines changed: 534 additions & 366 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,35 @@ msi-installed = []
3535
rustup-dist = { path = "src/rustup-dist" }
3636
rustup-utils = { path = "src/rustup-utils" }
3737
download = { path = "src/download" }
38-
error-chain = "0.7.1"
38+
error-chain = "0.10"
3939
clap = "2.18.0"
40-
regex = "0.1.41"
40+
regex = "0.2"
4141
url = "1.1.0"
4242
term = "0.4.4"
43-
itertools = "0.4.1"
43+
itertools = "0.6"
4444
time = "0.1.34"
4545
tempdir = "0.3.4"
4646
tempfile = "2.1.4"
4747
libc = "0.2.0"
4848
rand = "0.3.11"
49-
scopeguard = "0.1.2"
49+
markdown = "0.2"
5050
rustc-serialize = "0.3"
51+
scopeguard = "0.3"
5152
sha2 = "0.6.0"
52-
markdown = "0.2"
53-
toml = "0.1.27"
53+
toml = "0.1"
5454
wait-timeout = "0.1.5"
5555

5656
[target."cfg(windows)".dependencies]
5757
winapi = "0.2.8"
58-
winreg = "0.3.2"
59-
user32-sys = "0.1.2"
58+
winreg = "0.4.0"
59+
user32-sys = "0.2.0"
6060
kernel32-sys = "0.2.1"
6161
gcc = "0.3.50"
6262
psapi-sys = "0.1"
6363

6464
[dev-dependencies]
6565
rustup-mock = { path = "src/rustup-mock", version = "1.1.0" }
66-
lazy_static = "0.1.15"
66+
lazy_static = "0.2"
6767

6868
[workspace]
6969
members = ["src/rustup-win-installer"]

ci/build-run-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
docker run \
1616
--entrypoint bash \
1717
-u `id -u`:`id -g` \
18-
-v $HOME/rust:/travis-rust:ro \
18+
-v `rustc --print sysroot`:/travis-rust:ro \
1919
-v `pwd`:/buildslave:ro \
2020
-v `pwd`/target:/buildslave/target \
2121
-e TARGET=$TARGET \

src/download/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ hyper-backend = ["hyper", "env_proxy", "native-tls", "openssl-probe"]
1515
rustls-backend = ["hyper", "env_proxy", "rustls", "lazy_static", "ca-loader"]
1616

1717
[dependencies]
18-
error-chain = "0.7.1"
18+
error-chain = "0.10"
1919
url = "1.1"
2020
curl = { version = "0.4.6", optional = true }
2121
lazy_static = { version = "0.2", optional = true }
@@ -37,7 +37,7 @@ optional = true
3737
openssl-probe = { version = "0.1", optional = true }
3838

3939
[dependencies.rustls]
40-
version = "0.1.2"
40+
version = "0.9"
4141
optional = true
4242

4343
[dependencies.ca-loader]

src/rustup-cli/self_update.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn canonical_cargo_home() -> Result<String> {
207207
path_str = String::from("$HOME/.cargo");
208208
} else {
209209
path_str = String::from(r"%USERPROFILE%\.cargo");
210-
}
210+
}
211211
}
212212

213213
Ok(path_str)
@@ -1337,7 +1337,7 @@ fn parse_new_rustup_version(version: String) -> String {
13371337
let re = Regex::new(r"\d+.\d+.\d+[0-9a-zA-Z-]*").unwrap();
13381338
let capture = re.captures(&version);
13391339
let matched_version = match capture {
1340-
Some(cap) => cap.at(0).unwrap(),
1340+
Some(cap) => cap.get(0).unwrap().as_str(),
13411341
None => "(unknown)"
13421342
};
13431343
String::from(matched_version)

src/rustup-dist/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ repository = "https://github.com/rust-lang-nursery/rustup.rs"
1313
license = "MIT OR Apache-2.0"
1414

1515
[dependencies]
16-
regex = "0.1.41"
17-
itertools = "0.4.1"
16+
regex = "0.2.0"
17+
itertools = "0.6"
1818
ole32-sys = "0.2.0"
1919
url = "1.1.0"
2020
tar = "0.4.0"
2121
flate2 = "0.2.9"
2222
xz2 = "0.1.3"
2323
tempdir = "0.3.4"
24-
walkdir = "0.1.5"
24+
walkdir = "1.0"
2525
toml = "0.1.27"
2626
sha2 = "0.6.0"
2727
rustup-utils = { path = "../rustup-utils" }
28-
error-chain = "0.7.1"
28+
error-chain = "0.10"
2929

3030
[dev-dependencies]
3131
rustup-mock = { path = "../rustup-mock" }
3232

3333
[target."cfg(windows)".dependencies]
3434
winapi = "0.2.8"
35-
winreg = "0.3.2"
36-
user32-sys = "0.1.2"
35+
winreg = "0.4"
36+
user32-sys = "0.2.0"
3737
kernel32-sys = "0.2.1"
3838

3939
[target."cfg(not(windows))".dependencies]

src/rustup-dist/src/dist.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ impl PartialTargetTriple {
229229
}
230230

231231
PartialTargetTriple {
232-
arch: c.at(1).and_then(fn_map),
233-
os: c.at(2).and_then(fn_map),
234-
env: c.at(3).and_then(fn_map),
232+
arch: c.get(1).map(|s| s.as_str()).and_then(fn_map),
233+
os: c.get(2).map(|s| s.as_str()).and_then(fn_map),
234+
env: c.get(3).map(|s| s.as_str()).and_then(fn_map),
235235
}
236236
})
237237
}
@@ -256,12 +256,12 @@ impl PartialToolchainDesc {
256256
}
257257
}
258258

259-
let trip = c.at(3).unwrap_or("");
259+
let trip = c.get(3).map(|c| c.as_str()).unwrap_or("");
260260
let trip = PartialTargetTriple::from_str(&trip);
261261
trip.map(|t| {
262262
PartialToolchainDesc {
263-
channel: c.at(1).unwrap().to_owned(),
264-
date: c.at(2).and_then(fn_map),
263+
channel: c.get(1).unwrap().as_str().to_owned(),
264+
date: c.get(2).map(|s| s.as_str()).and_then(fn_map),
265265
target: t,
266266
}
267267
})
@@ -331,9 +331,9 @@ impl ToolchainDesc {
331331
}
332332

333333
ToolchainDesc {
334-
channel: c.at(1).unwrap().to_owned(),
335-
date: c.at(2).and_then(fn_map),
336-
target: TargetTriple(c.at(3).unwrap().to_owned()),
334+
channel: c.get(1).unwrap().as_str().to_owned(),
335+
date: c.get(2).map(|s| s.as_str()).and_then(fn_map),
336+
target: TargetTriple(c.get(3).unwrap().as_str().to_owned()),
337337
}
338338
})
339339
.ok_or(ErrorKind::InvalidToolchainName(name.to_string()).into())

src/rustup-mock/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ repository = "https://github.com/rust-lang-nursery/rustup.rs"
1111

1212
[dependencies]
1313
url = "1.1.0"
14-
scopeguard = "0.1.2"
15-
lazy_static = "0.1.15"
16-
walkdir = "0.1.5"
14+
scopeguard = "0.3.0"
15+
lazy_static = "0.2.0"
16+
walkdir = "1.0.0"
1717
flate2 = "0.2.9"
1818
xz2 = "0.1.3"
1919
tempdir = "0.3.4"
20-
itertools = "0.4.1"
20+
itertools = "0.6"
2121
tar = "0.4.0"
2222
toml = "0.1.27"
2323
rustup-utils = { path = "../rustup-utils" }
@@ -26,5 +26,5 @@ wait-timeout = "0.1.3"
2626

2727
[target."cfg(windows)".dependencies]
2828
winapi = "0.2.8"
29-
winreg = "0.3.2"
29+
winreg = "0.4.0"
3030

src/rustup-utils/Cargo.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@ repository = "https://github.com/rust-lang-nursery/rustup.rs"
1212
license = "MIT OR Apache-2.0"
1313

1414
[dependencies]
15-
rand = "0.3.11"
16-
scopeguard = "0.1.2"
17-
error-chain = "0.7.1"
15+
download = { path = "../download" }
16+
error-chain = "0.10"
1817
libc = "0.2.0"
18+
rand = "0.3.11"
1919
rustc-serialize = "0.3.19"
20+
scopeguard = "0.3.0"
21+
semver = "0.7.0"
2022
sha2 = "0.6.0"
21-
url = "1.1"
2223
toml = "0.1.27"
23-
semver = "0.4.0"
24-
download = { path = "../download" }
25-
lazy_static = "0.1.15"
24+
url = "1.1"
2625

2726
[target."cfg(windows)".dependencies]
28-
winapi = "0.2.8"
29-
winreg = "0.3.2"
30-
shell32-sys = "0.1.1"
31-
ole32-sys = "0.2.0"
32-
kernel32-sys = "0.2.1"
3327
advapi32-sys = "0.2.0"
28+
kernel32-sys = "0.2.1"
29+
lazy_static = "0.2"
30+
ole32-sys = "0.2.0"
31+
shell32-sys = "0.1.1"
3432
userenv-sys = "0.2.0"
35-
33+
winapi = "0.2.8"
34+
winreg = "0.4.0"

src/rustup-utils/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ extern crate url;
1010
extern crate toml;
1111
extern crate download;
1212
extern crate semver;
13-
#[macro_use]
14-
extern crate lazy_static;
1513

1614
#[cfg(windows)]
1715
extern crate winapi;
@@ -27,6 +25,9 @@ extern crate kernel32;
2725
extern crate advapi32;
2826
#[cfg(windows)]
2927
extern crate userenv;
28+
#[cfg(windows)]
29+
#[macro_use]
30+
extern crate lazy_static;
3031

3132
#[cfg(unix)]
3233
extern crate libc;

0 commit comments

Comments
 (0)