Pass --format-version 1 to cargo metadata.

Suppress warning introduced by rust-lang/cargo#3841.
This commit is contained in:
kennytm 2017-04-18 00:07:36 +08:00
parent 0777c757a6
commit 93d57d64b8
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

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