Perform proto codegen in build script

This commit is contained in:
topjohnwu
2023-05-03 16:13:05 -07:00
committed by John Wu
parent 7bf2e3875f
commit 21ddb26db8
6 changed files with 739 additions and 4867 deletions
+12
View File
@@ -0,0 +1,12 @@
use protobuf_codegen::Customize;
fn main() {
println!("cargo:rerun-if-changed=update_metadata.proto");
protobuf_codegen::Codegen::new()
.pure()
.include(".")
.input("update_metadata.proto")
.customize(Customize::default().gen_mod_rs(false))
.out_dir(".")
.run_from_script();
}