Skip to content

EX-3143: Declare proto3 optional support in protoc-gen-cruxclient - #155

Open
Michael Gunawan (scmichaelg) wants to merge 1 commit into
masterfrom
EX-3143-proto3-optional-support
Open

EX-3143: Declare proto3 optional support in protoc-gen-cruxclient#155
Michael Gunawan (scmichaelg) wants to merge 1 commit into
masterfrom
EX-3143-proto3-optional-support

Conversation

@scmichaelg

@scmichaelg Michael Gunawan (scmichaelg) commented Mar 28, 2026

Copy link
Copy Markdown

Summary

Adds GetSupportedFeatures() override to declare FEATURE_PROTO3_OPTIONAL support in the cruxclient protoc plugin.

EX-3143

Problem description

When using protoc-gen-cruxclient with proto files that use optional fields (proto3 optional), buf/protoc emits warnings like:

WARN    plugin "cruxclient" does not support required features.
  Feature "proto3 optional" is required by 28 file(s)

The fix is a one-line override in the Generator class to declare the plugin supports this feature.

Without this, buf/protoc emits a warning for every .proto file using
proto3 optional fields, and may refuse to invoke the plugin in strict
mode.
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