Skip to content

Commit 93d57d6

Browse files
committed
Pass --format-version 1 to cargo metadata.
Suppress warning introduced by rust-lang/cargo#3841.
1 parent 0777c75 commit 93d57d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ fn build_krate(build: &mut Build, krate: &str) {
5858
// the dependency graph and what `-p` arguments there are.
5959
let mut cargo = Command::new(&build.cargo);
6060
cargo.arg("metadata")
61+
.arg("--format-version").arg("1")
6162
.arg("--manifest-path").arg(build.src.join(krate).join("Cargo.toml"));
6263
let output = output(&mut cargo);
6364
let output: Output = json::decode(&output).unwrap();

0 commit comments

Comments
 (0)