fn main() -> std::io::Result<()> { println!("Hello from build.rs!"); let out_dir = std::path::PathBuf::from("."); println!("{}", out_dir.display()); let cmd = clap::Command::new("ylf"); let man = clap_mangen::Man::new(cmd); let mut buffer: Vec = Default::default(); man.render(&mut buffer)?; std::fs::write(out_dir.join("ylf.1"), buffer)?; Ok(()) }