rust-protobuf
rust-protobuf copied to clipboard
Rust implementation of Google protocol buffers
fix: set client and server streaming
messag in CustomizeCallback during codegen
Hello, I have a .proto that rely on two other .proto, aka submessage. I need the corresponding generated .rs struct to be Serialize and Deserialize. For simple messages, it works...
I cannot use rust-protobuf to compile a package of proto files, where many files are grouped into packages and packages contain overlapping message names. Assume I have the following protobuf...
Context on the situation: I have a Starlink that provides a `.protoset` file from this command: ``` grpcurl -plaintext -protoset-out dish.protoset 192.168.100.1:9200 describe SpaceX.API.Device.Device ``` ...and I would like to...
Hi, I'm looking to generate rust from several (>20) proto files. However I cannot figure out where they are getting generated. Please advise Here is my build.rs: ```rust fn main()...
I would like to propose protobuf to generate Enum values in a `UpperCamelCase` to be consistent with Rust's conventions. Example: ```protobuf message Relation { enum MemberType { NODE = 0;...
From my understanding, there are two ways to customize the output (e.g. using lite_runtime): 1) setting the options on Customize when generating the protos and 2) setting proto options on...
Is it possible to generate protobuf stubs using my own generated well-known types instead of the pre-generated ones in the protobuf crate? ```protobuf message ExampleMessageWithWellKnownTypes { google.protobuf.Duration duration = 1;...
Attempting to parse json like: ``` let json = r#"{"date":"2019-09-01","val":null}"#; let data_point = protobuf_json_mapping::parse_from_str::(json).expect("could not parse data point."); ``` Fails with: "ParseError { error: ParseErrorWithoutLoc(ExpectingNumber)" The protobuf conventions at https://developers.google.com/protocol-buffers/docs/proto3#json...