protobuf-example 4.30.0-beta1

Example use of Rust Protocol Buffers bindings
1
2
3
4
5
6
7
8
9
use protobuf_codegen::CodeGen;

fn main() {
    CodeGen::new()
        .inputs(["proto_example/foo.proto", "proto_example/bar/bar.proto"])
        .include("proto")
        .generate_and_compile()
        .unwrap();
}