mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Add os to verbose version string.
This commit is contained in:
parent
c5318a17e7
commit
5a8be7ba21
@ -48,6 +48,7 @@ libgit2-sys = "0.12.24"
|
||||
memchr = "2.1.3"
|
||||
num_cpus = "1.0"
|
||||
opener = "0.5"
|
||||
os_info = "3.0.7"
|
||||
percent-encoding = "2.0"
|
||||
rustfix = "0.6.0"
|
||||
semver = { version = "1.0.3", features = ["serde"] }
|
||||
|
@ -178,6 +178,7 @@ pub fn get_version_string(is_verbose: bool) -> String {
|
||||
add_libgit2(&mut version_string);
|
||||
add_curl(&mut version_string);
|
||||
add_ssl(&mut version_string);
|
||||
writeln!(version_string, "os: {}", os_info::get()).unwrap();
|
||||
}
|
||||
version_string
|
||||
}
|
||||
|
@ -50,5 +50,6 @@ fn verbose() {
|
||||
.with_stdout_contains("host: [..]")
|
||||
.with_stdout_contains("libgit2: [..]")
|
||||
.with_stdout_contains("libcurl: [..]")
|
||||
.with_stdout_contains("os: [..]")
|
||||
.run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user