Skip to content

Comments

Add RFC 5531 Record Marking Standard references to Frame type#495

Merged
leighmcculloch merged 2 commits intomainfrom
docs/add-record-marking-standard
Feb 19, 2026
Merged

Add RFC 5531 Record Marking Standard references to Frame type#495
leighmcculloch merged 2 commits intomainfrom
docs/add-record-marking-standard

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Feb 12, 2026

What

Add a rustdoc comment to the Frame struct in xdr-generator/generator/header.rs describing the Record Marking Standard from RFC 5531 Section 11, including the 4-byte fragment header layout and Stellar's single-fragment-per-record convention. Update the inline comment in ReadXdr::read_xdr for Frame to use the RFC's terminology (last-fragment flag instead of the informal "flag-bit" / "more frames" wording).

Why

The Frame type implements RFC 5531 record marking, but neither the doc comment (which was missing) nor the inline comment named the RFC or used its terminology. Adding the reference makes the code discoverable via cargo doc and gives contributors a direct link to the specification the implementation follows.

Related

Add a doc comment to the Frame struct and update the inline comment in
read_xdr to reference the Record Marking Standard defined in RFC 5531
Section 11, clarifying the fragment header format.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds RFC 5531 Record Marking Standard references/terminology to the Frame type documentation and related inline comments, improving discoverability and aligning the implementation commentary with the specification.

Changes:

  • Add a rustdoc comment on Frame describing RFC 5531 §11 fragment header layout and Stellar’s single-fragment-per-record convention.
  • Update the ReadXdr::read_xdr inline comment to use RFC terminology (last-fragment flag, fragment header fields).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leighmcculloch leighmcculloch marked this pull request as ready for review February 12, 2026 07:31
@leighmcculloch leighmcculloch added this pull request to the merge queue Feb 19, 2026
Merged via the queue into main with commit 336e78c Feb 19, 2026
13 checks passed
@leighmcculloch leighmcculloch deleted the docs/add-record-marking-standard branch February 19, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants