Merged
Conversation
Owner
|
Thanks! This should be ok given they're all types with known sizes. There may be some optimizations we could do for say Can we have a trybuild test in order to confirm what the error is when we |
Collaborator
Author
Added. |
b74b324 to
780a872
Compare
* Add new derive DekuSize, which emits SIZE_BYTES and SIZE_BITS. This can be use to get the max bit/byte size of the parsed enum/struct so that your stack/heap can be properly allocated before usage. * Generated for all primitive and std types we have, others such as Vec are impossible. Closees #599, #307
780a872 to
10242db
Compare
sharksforarms
previously approved these changes
Nov 11, 2025
Owner
sharksforarms
left a comment
There was a problem hiding this comment.
Thanks! rebased, pending ci
9f8bb99 to
ed5f5f6
Compare
sharksforarms
approved these changes
Nov 12, 2025
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.
Closees #599, #307