Skip to content

Commit

Permalink
Auto merge of #1123 - alexcrichton:issue-1037, r=alexcrichton
Browse files Browse the repository at this point in the history
Now that the compiler supports the notion for a "dependency lookup path" Cargo
can specify this information to the compiler in order to prevent transitive
dependencies from being imported.

Closes #1037
  • Loading branch information
bors committed Jan 6, 2015
2 parents 56e9314 + 5be647e commit 4a0154d
Show file tree
Hide file tree
Showing 88 changed files with 436 additions and 366 deletions.
122 changes: 61 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ name = "cargo"
path = "src/cargo/lib.rs"

[dependencies]
toml = "0.1.7"
semver = "0.1.6"
curl = "0.1.3"
tar = "0.1.3"
flate2 = "0.1.0"
git2 = "0.1.0"
glob = "0.1.0"
time = "0.1.0"
log = "0.1.0"
docopt = "0.6.19"
url = "0.2.7"
rustc-serialize = "0.1.5"
toml = "0.1"
semver = "0.1"
curl = "0.1"
tar = "0.1"
flate2 = "0.1"
git2 = "0.1"
glob = "0.1"
time = "0.1"
log = "0.1"
docopt = "0.6"
url = "0.2"
rustc-serialize = "0.2"
term = "0.1"

[dev-dependencies.hamcrest]
Expand Down
2 changes: 1 addition & 1 deletion src/bin/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use cargo::core::MultiShell;
use cargo::util::{CliResult, CliError, Human};
use cargo::util::important_paths::{find_root_manifest_for_cwd};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct Options {
flag_no_run: bool,
flag_package: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use cargo::ops;
use cargo::util::important_paths::{find_root_manifest_for_cwd};
use cargo::util::{CliResult, CliError};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct Options {
flag_package: Option<String>,
flag_jobs: Option<uint>,
Expand Down
6 changes: 3 additions & 3 deletions src/bin/cargo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(phase, macro_rules)]
#![feature(phase, macro_rules, old_orphan_check)]

extern crate "rustc-serialize" as rustc_serialize;
#[phase(plugin, link)] extern crate log;
Expand All @@ -7,14 +7,14 @@ extern crate "rustc-serialize" as rustc_serialize;
use std::collections::BTreeSet;
use std::os;
use std::io;
use std::io::fs::{mod, PathExtensions};
use std::io::fs::{self, PathExtensions};
use std::io::process::{Command,InheritFd,ExitStatus,ExitSignal};

use cargo::{execute_main_without_stdin, handle_error, shell};
use cargo::core::MultiShell;
use cargo::util::{CliError, CliResult, lev_distance};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct Flags {
flag_list: bool,
flag_verbose: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use cargo::core::MultiShell;
use cargo::util::{CliResult, CliError};
use cargo::util::important_paths::{find_root_manifest_for_cwd};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct Options {
flag_package: Option<String>,
flag_target: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions src/bin/config_for_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use std::collections::HashMap;
use cargo::core::MultiShell;
use cargo::util::{CliResult, CliError, config};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct ConfigForKeyFlags {
flag_human: bool,
flag_key: String,
}

#[deriving(RustcEncodable)]
#[derive(RustcEncodable)]
struct ConfigOut {
values: HashMap<String, config::ConfigValue>
}
Expand Down
4 changes: 2 additions & 2 deletions src/bin/config_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ use std::collections::HashMap;
use cargo::core::MultiShell;
use cargo::util::{CliResult, CliError, config};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct ConfigListFlags {
flag_human: bool,
}

#[deriving(RustcEncodable)]
#[derive(RustcEncodable)]
struct ConfigOut {
values: HashMap<String, config::ConfigValue>
}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use cargo::core::{MultiShell};
use cargo::util::{CliResult, CliError};
use cargo::util::important_paths::{find_root_manifest_for_cwd};

#[deriving(RustcDecodable)]
#[derive(RustcDecodable)]
struct Options {
flag_features: Vec<String>,
flag_jobs: Option<uint>,
Expand Down
Loading

0 comments on commit 4a0154d

Please sign in to comment.