Skip to content

Commit

Permalink
Trace used cargo command in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zheland committed Dec 6, 2024
1 parent 60cf366 commit fc97177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ fn spawn_cargo(
cmd.arg("-Ccodegen-units=1");
}

if format.verbosity >= 1 {
safeprintln!("Running: {cmd:?}");
}

cmd.stdin(Stdio::null())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
Expand Down

0 comments on commit fc97177

Please sign in to comment.