15 lines
395 B
Rust
15 lines
395 B
Rust
fn main() {
|
|
std::fs::create_dir_all("src/proto").unwrap();
|
|
protobuf_codegen::Codegen::new()
|
|
.pure()
|
|
.out_dir("src/proto")
|
|
.inputs(&["proto/message.proto"])
|
|
.include("proto")
|
|
// .customize(
|
|
// protobuf_codegen::Customize::default()
|
|
// .tokio_bytes(true)
|
|
// )
|
|
.run()
|
|
.expect("Codegen failed.");
|
|
}
|