-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #9292 - ehuss:cargo-util, r=alexcrichton
Split out cargo-util package for cargo-test-support. This splits out code from `cargo` that was being used by `cargo-test-support` in order to remove the dev-dependency cycle on the `cargo` crate. The intent here is to improve development build times. On my system, `touch src/cargo/lib.rs ; cargo check --profile=test` goes from 6.4 seconds to 3.5. I suspect more substantial changes (more than just `touch`) should exhibit even more improvements. This has a substantial downside that it is another package to manage publishing, particularly with making sure the version is updated correctly for crates.io. I'm uncertain if on balance it is worth it, but I lean towards moving forward with it.
- Loading branch information
Showing
74 changed files
with
656 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "cargo-util" | ||
version = "0.1.0" | ||
authors = ["The Cargo Project Developers"] | ||
edition = "2018" | ||
license = "MIT OR Apache-2.0" | ||
homepage = "https://github.com/rust-lang/cargo" | ||
repository = "https://github.com/rust-lang/cargo" | ||
description = "Miscellaneous support code used by Cargo." | ||
|
||
[dependencies] | ||
anyhow = "1.0.34" | ||
crypto-hash = "0.3.1" | ||
filetime = "0.2.9" | ||
hex = "0.4.2" | ||
jobserver = "0.1.21" | ||
libc = "0.2.88" | ||
log = "0.4.6" | ||
same-file = "1.0.6" | ||
shell-escape = "0.1.4" | ||
tempfile = "3.1.0" | ||
walkdir = "2.3.1" | ||
|
||
[target.'cfg(target_os = "macos")'.dependencies] | ||
core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] } | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
miow = "0.3.6" | ||
winapi = { version = "0.3.9", features = ["consoleapi", "minwindef"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! Miscellaneous support code used by Cargo. | ||
pub use self::read2::read2; | ||
pub use process_builder::ProcessBuilder; | ||
pub use process_error::{exit_status_to_string, is_simple_exit_code, ProcessError}; | ||
pub use sha256::Sha256; | ||
|
||
pub mod paths; | ||
mod process_builder; | ||
mod process_error; | ||
mod read2; | ||
mod sha256; | ||
|
||
/// Whether or not this running in a Continuous Integration environment. | ||
pub fn is_ci() -> bool { | ||
std::env::var("CI").is_ok() || std::env::var("TF_BUILD").is_ok() | ||
} |
Oops, something went wrong.