Skip to content

Commit 1dae5ac

Browse files
committed
Move paths to cargo-util.
1 parent dbfdd49 commit 1dae5ac

Some content is hidden

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

44 files changed

+250
-188
lines changed

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ num_cpus = "1.0"
5151
opener = "0.4"
5252
percent-encoding = "2.0"
5353
rustfix = "0.5.0"
54-
same-file = "1"
5554
semver = { version = "0.10", features = ["serde"] }
5655
serde = { version = "1.0.123", features = ["derive"] }
5756
serde_ignored = "0.1.0"
@@ -75,9 +74,6 @@ im-rc = "15.0.0"
7574
rustc-workspace-hack = "1.0.0"
7675
rand = "0.8.3"
7776

78-
[target.'cfg(target_os = "macos")'.dependencies]
79-
core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
80-
8177
[target.'cfg(windows)'.dependencies]
8278
fwdansi = "1.1.0"
8379

crates/cargo-util/Cargo.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ repository = "https://github.com/rust-lang/cargo"
99
description = "Miscellaneous support code used by Cargo."
1010

1111
[dependencies]
12-
anyhow = "1.0"
12+
anyhow = "1.0.34"
13+
filetime = "0.2.9"
1314
jobserver = "0.1.21"
14-
libc = "0.2"
15+
libc = "0.2.88"
16+
log = "0.4.6"
17+
same-file = "1.0.6"
1518
shell-escape = "0.1.4"
19+
tempfile = "3.1.0"
20+
walkdir = "2.3.1"
21+
22+
[target.'cfg(target_os = "macos")'.dependencies]
23+
core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
1624

1725
[target.'cfg(windows)'.dependencies]
1826
miow = "0.3.6"
19-
winapi = { version = "0.3", features = ["consoleapi", "minwindef"] }
27+
winapi = { version = "0.3.9", features = ["consoleapi", "minwindef"] }

crates/cargo-util/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub use self::read2::read2;
44
pub use process_builder::ProcessBuilder;
55
pub use process_error::{exit_status_to_string, is_simple_exit_code, ProcessError};
66

7+
pub mod paths;
78
mod process_builder;
89
mod process_error;
910
mod read2;

0 commit comments

Comments
 (0)