2023-05-19 22:16:54 +00:00
|
|
|
use crate::gen::gen_cxx_binding;
|
2023-06-20 16:22:48 +00:00
|
|
|
use pb_rs::{types::FileDescriptor, ConfigBuilder};
|
2023-05-19 22:16:54 +00:00
|
|
|
|
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() {
|
2023-06-20 16:22:48 +00:00
|
|
|
println!("cargo:rerun-if-changed=proto/update_metadata.proto");
|
2023-05-19 22:16:54 +00:00
|
|
|
|
|
|
|
gen_cxx_binding("boot-rs");
|
2023-06-20 16:22:48 +00:00
|
|
|
|
|
|
|
let cb = ConfigBuilder::new(
|
|
|
|
&["proto/update_metadata.proto"],
|
|
|
|
None,
|
|
|
|
Some(&"proto"),
|
|
|
|
&["."],
|
|
|
|
)
|
|
|
|
.unwrap();
|
|
|
|
FileDescriptor::run(
|
|
|
|
&cb.single_module(true)
|
|
|
|
.dont_use_cow(true)
|
|
|
|
.generate_getters(true)
|
|
|
|
.build(),
|
|
|
|
)
|
|
|
|
.unwrap();
|
2023-05-03 23:13:05 +00:00
|
|
|
}
|