Skip to content

mavlink-bindgen: skip non XML files - #353

Merged
onur-ozkan merged 1 commit into
mavlink:masterfrom
azerupi:master
Jul 29, 2025
Merged

mavlink-bindgen: skip non XML files#353
onur-ozkan merged 1 commit into
mavlink:masterfrom
azerupi:master

Conversation

@azerupi

@azerupi azerupi commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

When running mavlink-bindgen in a directory that contains other files it fails. In my case it panicked when trying to "generate" bindings for .git.

Example directory

mavlink
├── .git
├── all.xml
├── custom.xml
├── common.xml
├── minimal.xml
├── README.md
└── standard.xml

This PR adds a check when iterating over the entries in the directory to skip hidden files, directories and non-XML files.

Comment thread mavlink-bindgen/src/lib.rs Outdated
@azerupi
azerupi force-pushed the master branch 2 times, most recently from f0f76b4 to cefd987 Compare July 29, 2025 09:24
Comment thread mavlink-bindgen/src/lib.rs Outdated
@onur-ozkan
onur-ozkan merged commit 7230bc6 into mavlink:master Jul 29, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants