-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support of protoset binary format? #1117
Comments
hello? |
Looked over protoset pretty quick, appears to be binary encoded file descriptor sets. There is no first-class support, but there's an extension that might be useful: https://github.com/dcodeIO/protobuf.js/tree/master/ext/descriptor |
from grpc/grpc-node#550 (comment) I want to report a problem not sure which side can resolve it better? because most grpc uses this to make it work with the source code is mainly in this ts file https://github.com/grpc/grpc-node/blob/master/packages/proto-loader/src/index.ts example code from https://github.com/grpc/grpc/blob/master/examples/node/dynamic_codegen/greeter_client.js var protoLoader = require('@grpc/proto-loader');
var packageDefinition = protoLoader.loadSync(
PROTO_PATH,
{ keepCase: true, longs: String, enums: String, defaults: true, oneofs: true, });
var hello_proto = grpc.loadPackageDefinition(packageDefinition).helloworld; keep a private copy is not a good solution, hope either side can have a better one |
+1 if file descriptor sets are a supported feature of protoc, then we will need the ability to create
|
@dcodeIO or @nicolasnoble Do you have time to look at the linked |
from grpc/grpc-node#556 wonder is the protoset binary format already supported? or can be added?
I have searched the keyword of grpc + nodejs + protoset on google and within this repo, nothing found so far
I see the compiled protoset binary format is a good solution to bundle many related
*.proto
files into a single one file, it's pretty well supported by protoc compiler, and in Go language pkggithub.com/golang/protobuf
, and tools like grpcurlhttps://github.com/fullstorydev/grpcurl#protoset-files
https://github.com/golang/protobuf/tree/master/protoc-gen-go/descriptor
The text was updated successfully, but these errors were encountered: