调整项目结构、尝试支持安卓
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
Reference in New Issue
Block a user