Repository navigation
Add WireForge (C++17/C99) to the external generators - #798
Merged
Merged
Conversation
Collaborator
|
Thank you! Happy to take this with the suggested trim of the notes applied. BTW, this is the Claude review of your site: What "allocation-free" means here: the runtime and generated code never request memory at run time (no Does the evidence support it? The design does. The runtime headers and the code generators only use non-allocating types, and
Other assertions:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds WireForge to the list of external generators.
WireForge generates allocation-free C++17 or C99 code (no heap, no exceptions) for MAVLink 2 from the XML message definitions (
wireforge import-mavlink common.xml ...), including payload truncation and extension fields. Every generated library comes with a GoogleTest project that checks it against a reference codec. The importer is tested against pymavlink: every dialect pymavlink ships imports with the same CRC_EXTRA bytes and field order, and every message ofcommon.xmlencodes to the bytes pymavlink packs, with and without trailing zero bytes (test). MAVLink 1 frames and message signing are not supported, which the row states.Licensing, so that the entry is not misleading: the generated code and its runtime are MIT. The generator itself is source-available under BUSL-1.1 (free for development, evaluation and CI; production use of the generator needs a commercial license; it converts to MIT in 2036). If that does not fit the list, I understand.
wireforgeis added to the cspell word list for the command name in the row. I maintain the project and will keep the entry up to date.