use anyhow::Result;
use pathbuf::pathbuf;
use tonic_prost_build::configure;
fn main() -> Result<()> {
let root = env!("CARGO_MANIFEST_DIR");
let protos = vec![pathbuf![root, "proto", "hipcheck", "v1", "hipcheck.proto"]];
let includes = vec![pathbuf![root, "proto"]];
configure().compile_protos(&protos, &includes)?;
println!(
"cargo:rustc-env=TARGET={}",
std::env::var("TARGET").unwrap()
);
println!("cargo:rerun-if-changed-env=TARGET");
Ok(())
}