mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
no_deps
Co-authored-by: Joshua Nelson <github@jyn.dev>
This commit is contained in:
parent
376dd8a9b3
commit
85f649fd27
@ -58,6 +58,7 @@ fn get_x_wrapper_version(root: &Path, cargo: &Path) -> Option<Version> {
|
||||
let mut cmd = cargo_metadata::MetadataCommand::new();
|
||||
cmd.cargo_path(cargo)
|
||||
.manifest_path(root.join("src/tools/x/Cargo.toml"))
|
||||
.no_deps()
|
||||
.features(cargo_metadata::CargoOpt::AllFeatures);
|
||||
let mut metadata = t!(cmd.exec());
|
||||
metadata.packages.pop().map(|x| x.version)
|
||||
|
Loading…
Reference in New Issue
Block a user