Begin XML Schema Validator

This commit is contained in:
2025-04-05 23:15:39 +02:00
parent 0e2cca2e4f
commit 55a920414d
21 changed files with 798 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
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));
}
}