use protobuf_codegen::Codegen; fn main() { Codegen::new() // Parse the .proto in pure Rust so building needs no `protoc` binary // on the machine (routers and minimal containers rarely have one). .pure() .input("proto/config.proto") .includes(&["proto"]) .cargo_out_dir("protos") .run_from_script(); }