use std::{env, path::PathBuf}; fn main() { let bindings = bindgen::Builder::default() .header("/usr/include/libvirt/libvirt.h") .generate() .expect("Unable to generate bindings"); let out_path = PathBuf::from("src"); bindings .write_to_file(out_path.join("bindings.rs")) .expect("Could not write bindings"); }