fn main() { println!("cargo:rerun-if-changed=build.rs"); let mut cmd = std::process::Command::new("cargo"); cmd.args(vec!["install", "--git", "https://github.com/getzola/zola", "--locked"]); let mut child = cmd.spawn().expect("failed to call cargo install"); let _ = child.wait(); }