Skip to content

Commit

Permalink
Signal that plugin supports proto3 optionals for 2.27
Browse files Browse the repository at this point in the history
It's a backport of stepancheg#626.

Fixes: stepancheg#625

Signed-off-by: Tim Zhang <tim@hyper.sh>
  • Loading branch information
Tim-Zhang committed Aug 18, 2022
1 parent a3dc276 commit cfd551c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protobuf/src/compiler_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ where
parameter: req.get_parameter(),
});
let mut resp = CodeGeneratorResponse::new();
resp.set_supported_features(CodeGeneratorResponse_Feature::FEATURE_PROTO3_OPTIONAL as u64);
resp.set_file(
result
.iter()
Expand Down

0 comments on commit cfd551c

Please sign in to comment.