Skip to content

Fix stale Cord and extension sections in the Rust generated code guide. - #340

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1006655663
Nov 10, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1006655663

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Fix stale Cord and extension sections in the Rust generated code guide.

Update the [ctype = CORD] section to remove a stale note that Cords are not
implemented, clarify that ProtoStringCow/ProtoBytesCow are generated on the
C++ kernel while the upb kernel uses standard string/bytes accessors, and fix
the field names and code block fence.

Update the extensions section so the protobuf::ExtensionId path, method trait
bounds (AsView/IntoView/AsMut/IntoMut), and example constant names
(I32_EXT and REPEATED_I32_EXT) match the generated Rust API.

@copybara-service copybara-service Bot changed the title Internal change Fix stale Cord and extension sections in the Rust generated code guide. Nov 10, 2026
Update the `[ctype = CORD]` section to remove a stale note that Cords are not
implemented, clarify that `ProtoStringCow`/`ProtoBytesCow` are generated on the
C++ kernel while the upb kernel uses standard string/bytes accessors, and fix
the field names and code block fence.

Update the extensions section so the `protobuf::ExtensionId` path, method trait
bounds (`AsView`/`IntoView`/`AsMut`/`IntoMut`), and example constant names
(`I32_EXT` and `REPEATED_I32_EXT`) match the generated Rust API.

PiperOrigin-RevId: 1018031781
@copybara-service
copybara-service Bot merged commit 51aa6af into main Nov 10, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_1006655663 branch November 10, 2026 09:58
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.

1 participant