Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full recursive type support #105

Open
rooooooooob opened this issue Oct 10, 2022 · 0 comments
Open

Full recursive type support #105

rooooooooob opened this issue Oct 10, 2022 · 0 comments
Labels
CDDL feature Feature that is required for proper parsing of CDDL files

Comments

@rooooooooob
Copy link
Collaborator

As of #103 we have resolved dependency ordering (#93), but this, as before, still leads to recursive structures potentially being directly stack-allocated within the rust structs generated. This is not allowed in rust (since undefined sizes), so we've previously had to go in and insert some Box's in some spots (e.g. where they weren't already heap-allocated e.g. in a Vec or BTreeMap).

This is mostly here to document this limitation, but it's possible we could figure out where to insert these Boxs in a reasonable manner at code-gen time to avoid having to hand-edit it later.

@rooooooooob rooooooooob changed the title Full recrusive type support Full recursive type support Oct 27, 2022
@SebastienGllmt SebastienGllmt added the CDDL feature Feature that is required for proper parsing of CDDL files label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDDL feature Feature that is required for proper parsing of CDDL files
Projects
None yet
Development

No branches or pull requests

2 participants