Skip to content

Commit f776ac9

Browse files
committed
Call cargo metadata with --no-deps
1 parent 9bbbfa2 commit f776ac9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/zig.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,10 @@ impl Zig {
755755
// cargo install doesn't pass a manifest path so `Cargo.toml` in cwd may not exist
756756
continue;
757757
}
758-
let mut metadata_cmd = cargo_metadata::MetadataCommand::new();
759-
metadata_cmd.manifest_path(manifest_path);
760-
let metadata = metadata_cmd.exec()?;
758+
let metadata = cargo_metadata::MetadataCommand::new()
759+
.manifest_path(manifest_path)
760+
.no_deps()
761+
.exec()?;
761762
metadata.target_directory.into_std_path_buf().join(target)
762763
};
763764
let profile = match cargo.profile.as_deref() {

0 commit comments

Comments
 (0)