Merge pull request #1725 from murgatroid99/grpc-tools_plugin_optional_fix

grpc-tools: make the plugin compatible with proto3 optional fields
This commit is contained in:
Michael Lumish 2021-03-23 13:38:18 -07:00 committed by GitHub
commit bc05778f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "grpc-tools",
"version": "1.11.0",
"version": "1.11.1",
"author": "Google Inc.",
"description": "Tools for developing with gRPC on Node.js",
"homepage": "https://grpc.io/",

View File

@ -65,6 +65,10 @@ class NodeGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
coded_out.WriteRaw(code.data(), code.size());
return true;
}
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};
int main(int argc, char* argv[]) {