Skip to content

Commit 82caed1

Browse files
committed
cargo miri setup: print when we are executing commands
1 parent b09dfc1 commit 82caed1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/cargo-miri.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ fn setup(ask_user: bool) {
128128
{
129129
if ask_user {
130130
ask("It seems you do not have xargo installed. I will run `cargo install xargo`. Proceed?");
131+
} else {
132+
println!("Installing xargo: `cargo install xargo`");
131133
}
132134
if !Command::new("cargo").args(&["install", "xargo"]).status().unwrap().success() {
133135
show_error(format!("Failed to install xargo"));
@@ -141,6 +143,8 @@ fn setup(ask_user: bool) {
141143
if !src.exists() {
142144
if ask_user {
143145
ask("It seems you do not have the rust-src component installed. I will run `rustup component add rust-src`. Proceed?");
146+
} else {
147+
println!("Installing rust-src component: `rustup component add rust-src`");
144148
}
145149
if !Command::new("rustup").args(&["component", "add", "rust-src"]).status().unwrap().success() {
146150
show_error(format!("Failed to install rust-src component"));

0 commit comments

Comments
 (0)