1 2 3 4 5 6 7 8
use std::process::Command; fn main() { Command::new("cargo") .args(&["fmt", "--", "src/*.rs"]) .status() .expect("cargo fmt failed"); }