Skip to content

Commit a58ffd7

Browse files
committed
Auto merge of #1360 - alexcrichton:new-io, r=alexcrichton
cc @aturon, this is one giant commit.
2 parents 5773064 + a6dad62 commit a58ffd7

Some content is hidden

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

80 files changed

+1907
-1808
lines changed

Cargo.lock

Lines changed: 68 additions & 63 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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ path = "src/cargo/lib.rs"
1212
[dependencies]
1313
toml = "0.1"
1414
semver = "0.1"
15-
curl = "0.1"
16-
tar = "0.1"
17-
flate2 = "0.1"
18-
git2 = "0.1"
19-
git2-curl = "0.1"
20-
glob = "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"
2121
time = "0.1"
2222
log = "0.2"
2323
env_logger = "0.2"
2424
docopt = "0.6"
2525
url = "0.2"
26-
rustc-serialize = "0.2"
26+
rustc-serialize = "0.3"
2727
term = "0.1"
2828
regex = "0.1"
29+
threadpool = "0.1"
30+
libc = "0.1"
2931

3032
[target.i686-pc-windows-gnu.dependencies]
3133
winapi = "0.1"

Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $(foreach target,$(CFG_TARGET),$(eval $(call DIST_TARGET,$(target))))
7070
ifdef CFG_LOCAL_CARGO
7171
CARGO := $(CFG_LOCAL_CARGO)
7272
else
73-
CARGO := $(TARGET_ROOT)/snapshot/bin/cargo$(X)
73+
CARGO := $(TARGET_ROOT)/snapshot/cargo/bin/cargo$(X)
7474
endif
7575

7676
all: $(foreach target,$(CFG_TARGET),cargo-$(target))
@@ -82,11 +82,12 @@ cargo-$(1): $$(CARGO)
8282
$$(CARGO) build --target $(1) $$(OPT_FLAG) $$(VERBOSE_FLAG) $$(ARGS)
8383

8484
test-unit-$(1): $$(CARGO)
85+
@mkdir -p target/$(1)/cit
8586
$$(CARGO) test --target $(1) $$(VERBOSE_FLAG) $$(only)
8687
endef
8788
$(foreach target,$(CFG_TARGET),$(eval $(call CARGO_TARGET,$(target))))
8889

89-
$(TARGET_ROOT)/snapshot/bin/cargo$(X): src/snapshots.txt
90+
$(TARGET_ROOT)/snapshot/cargo/bin/cargo$(X): src/snapshots.txt
9091
$(CFG_PYTHON) src/etc/dl-snapshot.py $(CFG_BUILD)
9192
touch $@
9293

src/bin/bench.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::old_io::process::ExitStatus;
2-
31
use cargo::ops;
42
use cargo::util::{CliResult, CliError, Human, Config};
53
use cargo::util::important_paths::{find_root_manifest_for_cwd};
@@ -76,9 +74,9 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
7674
match err {
7775
None => Ok(None),
7876
Some(err) => {
79-
Err(match err.exit {
80-
Some(ExitStatus(i)) => CliError::new("", i as i32),
81-
_ => CliError::from_boxed(box Human(err), 101)
77+
Err(match err.exit.as_ref().and_then(|c| c.code()) {
78+
Some(i) => CliError::new("", i),
79+
None => CliError::from_error(Human(err), 101)
8280
})
8381
}
8482
}

0 commit comments

Comments
 (0)