Skip to content

[Rust] Updates FlatBufferBuilder so it supports dynamic usage#9166

Open
csmulhern wants to merge 1 commit into
google:masterfrom
csmulhern:builder
Open

[Rust] Updates FlatBufferBuilder so it supports dynamic usage#9166
csmulhern wants to merge 1 commit into
google:masterfrom
csmulhern:builder

Conversation

@csmulhern

Copy link
Copy Markdown
Contributor

This exposes the lower-level Rust FlatBufferBuilder hooks needed for runtime text-format parsing from a schema.

Today, the public builder API mostly goes through Push, where size and alignment are statically determined from a Rust type. That works for generated code, but not for a parser using dynamic schema data, where the element layout is only known at runtime.

This PR adds raw vector start/end methods and exposes existing alignment, byte-push, field-tracking, and size helpers so a text parser can build FlatBuffers directly from schema metadata. These same APIs are public in the C++ builder API for similar purposes.

@csmulhern csmulhern requested a review from dbaileychess as a code owner July 6, 2026 03:30
@github-actions github-actions Bot added the rust label Jul 6, 2026
@csmulhern csmulhern changed the title Updates FlatBufferBuilder so it supports dynamic usage [Rust] Updates FlatBufferBuilder so it supports dynamic usage Jul 6, 2026
@csmulhern

Copy link
Copy Markdown
Contributor Author

cc @jtdavis777 for thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant