Closed jrcichra closed 1 year ago
All right. Almost one year ago. I had the same issue and found that the protobuf-codegen/src/codegen/mod.rs
doesn't apply extra args. A temporary way is adding the following code at line 144:
parser.protoc_extra_args(&self.protoc_extra_args); ///<-- add this code to apply extra args.
parser.inputs(&self.inputs);
parser.includes(&self.includes);
Hope this can help.
Context on the situation: I have a Starlink that provides a
.protoset
file from this command:...and I would like to interact with the Starlink gRPC through Rust through the protoset it provides.
With
cargo install protobuf-codegen
, I can generatedevice.rs
andmod.rs
files no problem:I'd like to do this within
build.rs
- something like:However, doing so yields this output:
My extra arg to
protoc
was not passed in according to cause #1.