There was an error while loading. Please reload this page.
1 parent 5499f28 commit 7230bc6Copy full SHA for 7230bc6
1 file changed
mavlink-bindgen/src/lib.rs
@@ -55,6 +55,11 @@ fn _generate(
55
let definition_file = PathBuf::from(entry.file_name());
56
let module_name = util::to_module_name(&definition_file);
57
58
+ // Skip non-XML files
59
+ if !definition_file.extension().is_some_and(|e| e == "xml") {
60
+ continue;
61
+ }
62
+
63
let definition_rs = PathBuf::from(&module_name).with_extension("rs");
64
65
let dest_path = destination_dir.join(definition_rs);
0 commit comments