Skip to content

Fix mapping of well-known types when compiling a FileDescriptionSet#2647

Open
MarkusPettersson98 wants to merge 1 commit into
grpc:masterfrom
MarkusPettersson98:support-wkt-compile-fds
Open

Fix mapping of well-known types when compiling a FileDescriptionSet#2647
MarkusPettersson98 wants to merge 1 commit into
grpc:masterfrom
MarkusPettersson98:support-wkt-compile-fds

Conversation

@MarkusPettersson98
Copy link
Copy Markdown

Respect the recently added Builder::with_extended_rust_types when compiling a FileDescriptionSet via e.g. Builder::compile_fds or Builder::compile_fds_with_config.

Motivation

When with_extended_rust_types was added in #2544, only the code paths compiling .proto files from source were updated to include the extended mappings of well-known types. This makes it harder to use the option when compiling .proto files using protox, for example.

Solution

Duplicate the code path from Builder::compile_with_config extending NON_PATH_TYPE_ALLOWLIST with EXTENDED_NON_PATH_TYPE_ALLOWLIST when compiling .proto sources via Builder::compile_fds_with_config.

Respect the recently added `Builder::with_extended_rust_types` when
compiling a `FileDescriptionSet` via e.g. `Builder::compile_fds` or
`Builder::compile_fds_with_config`. When `with_extended_rust_types` was
added, only the code paths compiling .proto files from source were
updated to include the extended mappings of well-known types.
@MarkusPettersson98 MarkusPettersson98 force-pushed the support-wkt-compile-fds branch from f2633ee to 0a7661b Compare May 19, 2026 12:59
@MarkusPettersson98 MarkusPettersson98 changed the base branch from v0.14.x to master May 19, 2026 12:59
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