Skip to content

Full recursive type support #105

Open

Description

@rooooooooob

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.

Activity

  1. changed the title [-]Full recrusive type support[/-] [+]Full recursive type support[/+] on Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CDDL featureFeature that is required for proper parsing of CDDL files

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions