Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
 
 
 
 
 
 

7 lines
185 B

use protobuf_codegen::CodeGen;
fn main() {
let mut codegen = CodeGen::new();
codegen.inputs(["foo.proto", "bar/bar.proto"]).include("proto");
codegen.compile().unwrap();
}