Skip to content

feat(layout): support nested layout options - #7

Draft
snawaz wants to merge 1 commit into
snawaz/review-fixesfrom
snawaz/nested-layout-options
Draft

snawaz wants to merge 1 commit into
snawaz/review-fixesfrom
snawaz/nested-layout-options

Conversation

@snawaz

@snawaz snawaz commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Optional nested configurations can now retain their own generated layouts instead of flattening fields into the parent.

  • Fixed-offset layouts support fixed-slot nested options and trailing flexible nested options.
  • Flexible nested options accept bounded variable-size layouts and resize storage to their exact encoding.
  • Variable-offset layouts support tagged fixed-size nested options while preserving later field offsets.
  • Generated immutable and mutable views decode or replace nested values without rebuilding the parent layout.

Validation covers absent and present values, exact nested decoding, malformed tags and lengths, prefix framing, and storage resizing.

Closes #6

@snawaz
snawaz added this pull request to stack #3 October 19, 2026 19:51
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@snawaz snawaz added the enhancement New feature or request label Oct 19, 2026
@snawaz snawaz self-assigned this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support nested layout options

1 participant