Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CargoMetadata::no_deps #165

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# cargo-mutants changelog

## Unreleased

- Improved: Run `cargo metadata` with `--no-deps`, so that it doesn't download and compute dependency information, which can save time in some situations.

## 23.11.1

- New `--in-diff FILE` option tests only mutants that are in the diff from the
Expand Down
1 change: 0 additions & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ mod test {
list_recursive(tmp.path()),
&[
"",
"Cargo.lock",
"Cargo.toml",
"mutants.out",
"mutants.out/caught.txt",
Expand Down
1 change: 1 addition & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl Workspace {
debug!(?cargo_toml_path, ?dir, "Find root files");
check_interrupted()?;
let metadata = cargo_metadata::MetadataCommand::new()
.no_deps()
.manifest_path(&cargo_toml_path)
.exec()
.context("run cargo metadata")?;
Expand Down