protoc-gen-buffa: add unbox_oneof option - #392
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
[claude code] The normalization matches
Tests should cover the empty, whitespace, and trailing-dot inputs. Re-review on push; on the 0.9.2 list. |
|
[claude code] The rename and the |
…rrors by name The path-valued unbox_oneof=<path> alias preserved a spelling that only ever existed on this branch, and it routed near-miss booleans (unbox_oneof=TRUE, =1) into the path parser, where they normalize to a path that matches nothing and generate boxed code with no diagnostic. unbox_oneof now goes through parse_bool like every other boolean option; unbox_oneof_in=<path> is the only path spelling. Its empty-path error names unbox_oneof_in instead of unbox_oneof, the codegen recursion error no longer cites the builder's unbox_oneof() to plugin users, the guide section is one flowing paragraph and notes that views stay boxed, and the fragment drops the alias sentence.
7f86b63 to
84c4f33
Compare
What
unbox_oneof=<path>support toprotoc-gen-buffa..likeConfig::unbox_oneof_in.unbox_oneof=.for all non-recursive message/group variants.Tests
cargo test -p protoc-gen-buffa unbox_oneoftask linttask testcargo test --workspace --all-featuresNo generated files or CI changes.