创建项目

This commit is contained in:
lubeilin
2023-01-03 22:36:18 +08:00
parent 0228f2be67
commit a8bfe8a54c
37 changed files with 5576 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
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.");
}