1 2 3 4 5 6 7 8 9 10
use std::process::Command; pub fn run() { Command::new("cargo-watch") .args(&["-x", "r"]) .spawn() .expect("Error running cargo-watch") .wait() .expect("error running the command"); }