use std::process::Command; fn main() { println!("cargo:rerun-if-changed=style.scss"); Command::new("sass") .arg("./style.scss") .arg("./static/style.css") .output() .expect("Unable to compile SASS file, install SASS, see https://sass-lang.com/"); }