extern crate varlink_generator; use walkdir::WalkDir; fn main() { println!("cargo:rerun-if-changed=src/*.varlink"); for entry in WalkDir::new("src").into_iter().filter_map(|e| e.ok()) { if entry.file_name().to_str().unwrap().ends_with(".varlink") { varlink_generator::cargo_build_tosource(&entry.path().display().to_string(), true); } } }