Skip to content

Commit 202131f

Browse files
committed
Auto merge of #1397 - alexcrichton:update, r=alexcrichton
Continuation of #1384
2 parents b27cd47 + 22e7ede commit 202131f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+273
-233
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,34 @@ name = "cargo"
1010
path = "src/cargo/lib.rs"
1111

1212
[dependencies]
13-
toml = "0.1"
14-
semver = "0.1"
15-
curl = "0.2"
16-
tar = "0.2"
17-
flate2 = "0.2"
18-
git2 = "0.2"
19-
git2-curl = "0.2"
20-
glob = "0.2"
21-
time = "0.1"
22-
log = "0.2"
23-
env_logger = "0.2"
24-
docopt = "0.6"
25-
url = "0.2"
26-
rustc-serialize = "0.3"
27-
term = "0.1"
28-
regex = "0.1"
29-
threadpool = "0.1"
30-
libc = "0.1"
31-
32-
[target.i686-pc-windows-gnu.dependencies]
33-
winapi = "0.1"
34-
advapi32-sys = "*"
35-
36-
[target.x86_64-pc-windows-gnu.dependencies]
37-
winapi = "0.1"
38-
advapi32-sys = "*"
39-
40-
[dev-dependencies.hamcrest]
41-
git = "https://github.com/carllerche/hamcrest-rust.git"
42-
43-
[dependencies.registry]
44-
path = "src/registry"
13+
toml = "0.1.18"
14+
semver = "0.1.16"
15+
curl = "0.2.2"
16+
tar = "0.2.3"
17+
flate2 = "0.2.0"
18+
git2 = "0.2.1"
19+
git2-curl = "0.2.1"
20+
glob = "0.2.2"
21+
time = "0.1.19"
22+
log = "0.2.5"
23+
env_logger = "0.2.2"
24+
docopt = "0.6.45"
25+
url = "0.2.23"
26+
rustc-serialize = "0.3.1"
27+
term = "0.1.13"
28+
regex = "0.1.18"
29+
threadpool = "0.1.1"
30+
libc = "0.1.2"
31+
registry = { path = "src/registry" }
32+
33+
[target.i686-pc-windows-gnu]
34+
dependencies = { winapi = "0.1", advapi32-sys = "*" }
35+
[target.x86_64-pc-windows-gnu]
36+
dependencies = { winapi = "0.1", advapi32-sys = "*" }
37+
38+
[dev-dependencies]
39+
tempdir = "0.3"
40+
hamcrest = { git = "https://github.com/carllerche/hamcrest-rust.git" }
4541

4642
[[bin]]
4743
name = "cargo"
@@ -50,9 +46,6 @@ doc = false
5046

5147
[[test]]
5248
name = "tests"
53-
[[bench]]
54-
name = "tests"
55-
path = "tests/tests.rs"
5649

5750
[[test]]
5851
name = "resolve"

src/bin/bench.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
5151
config.shell().set_verbose(options.flag_verbose);
5252

5353
let ops = ops::TestOptions {
54-
name: options.flag_bench.as_ref().map(|s| s.as_slice()),
54+
name: options.flag_bench.as_ref().map(|s| &s[..]),
5555
no_run: options.flag_no_run,
5656
compile_opts: ops::CompileOptions {
5757
env: "bench",
5858
config: config,
5959
jobs: options.flag_jobs,
60-
target: options.flag_target.as_ref().map(|s| s.as_slice()),
60+
target: options.flag_target.as_ref().map(|s| &s[..]),
6161
dev_deps: true,
6262
features: &options.flag_features,
6363
no_default_features: options.flag_no_default_features,
64-
spec: options.flag_package.as_ref().map(|s| s.as_slice()),
64+
spec: options.flag_package.as_ref().map(|s| &s[..]),
6565
lib_only: false,
6666
exec_engine: None,
6767
},

src/bin/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
6262
env: env,
6363
config: config,
6464
jobs: options.flag_jobs,
65-
target: options.flag_target.as_ref().map(|t| t.as_slice()),
65+
target: options.flag_target.as_ref().map(|t| &t[..]),
6666
dev_deps: false,
6767
features: &options.flag_features,
6868
no_default_features: options.flag_no_default_features,
69-
spec: options.flag_package.as_ref().map(|s| s.as_slice()),
69+
spec: options.flag_package.as_ref().map(|s| &s[..]),
7070
lib_only: options.flag_lib,
7171
exec_engine: None,
7272
};

0 commit comments

Comments
 (0)