2023-05-03 23:13:05 +00:00
|
|
|
use protobuf_codegen::Customize;
|
|
|
|
|
2023-05-19 22:16:54 +00:00
|
|
|
use crate::gen::gen_cxx_binding;
|
|
|
|
|
2023-05-24 04:30:30 +00:00
|
|
|
#[path = "../include/gen.rs"]
|
2023-05-19 22:16:54 +00:00
|
|
|
mod gen;
|
|
|
|
|
2023-05-03 23:13:05 +00:00
|
|
|
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();
|
2023-05-19 22:16:54 +00:00
|
|
|
|
|
|
|
gen_cxx_binding("boot-rs");
|
2023-05-03 23:13:05 +00:00
|
|
|
}
|