From cfd551cd257a15ccf0c8f00d166ddc60e9b0340f Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 18 Aug 2022 14:53:25 +0800 Subject: [PATCH] Signal that plugin supports proto3 optionals for 2.27 It's a backport of #626. Fixes: #625 Signed-off-by: Tim Zhang --- protobuf/src/compiler_plugin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/protobuf/src/compiler_plugin.rs b/protobuf/src/compiler_plugin.rs index 122eeb385..4cb549ef5 100644 --- a/protobuf/src/compiler_plugin.rs +++ b/protobuf/src/compiler_plugin.rs @@ -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()