pub fn main() { println!("cargo:rerun-if-changed=../../action_schema.xsd"); let output = std::process::Command::new("xml_schema_generator.exe") .arg("--derive") .arg("Clone, Debug, Deserialize, Serialize") .arg("../../action_schema.xsd") .arg("src/schema.rs") .output() .expect("Failed to execute xml_schema_generator"); if !output.status.success() { panic!("xml_schema_generator failed: {}", String::from_utf8_lossy(&output.stderr)); } }