metrics/metrics-observer/build.rs

10 lines
297 B
Rust
Raw Normal View History

2020-10-05 07:22:45 -07:00
fn main() {
println!("cargo:rerun-if-changed=proto/event.proto");
let mut prost_build = prost_build::Config::new();
prost_build.btree_map(&["."]);
prost_build
.compile_protos(&["proto/event.proto"], &["proto/"])
.unwrap();
built::write_built_file().unwrap();
}