use std::process::Command; fn main() { Command::new("asciidoctor") .arg("-b") .arg("manpage") .arg("-o") .arg("../../target/docs/get-capec.1") .arg("docs/get-capec.adoc") .output() .expect("asciidoctor failed"); Command::new("gzip") .arg("../../target/docs/get-capec.1") .output() .expect("Fail for gzip running"); }