Generate cxx binding in build.rs

This commit is contained in:
topjohnwu
2023-05-19 15:16:54 -07:00
parent 57bd450798
commit 2bcf2e76f1
27 changed files with 169 additions and 49 deletions
+7
View File
@@ -1,5 +1,10 @@
use protobuf_codegen::Customize;
use crate::gen::gen_cxx_binding;
#[path = "../base/gen.rs"]
mod gen;
fn main() {
println!("cargo:rerun-if-changed=update_metadata.proto");
protobuf_codegen::Codegen::new()
@@ -9,4 +14,6 @@ fn main() {
.customize(Customize::default().gen_mod_rs(false))
.out_dir(".")
.run_from_script();
gen_cxx_binding("boot-rs");
}