24 lines
627 B
Rust

extern crate prost_build;
use prost_build::compile_protos;
use protobuf_src;
fn main() {
std::env::set_var("PROTOC", protobuf_src::protoc());
let protos = &[
"protobufs/meshtastic/mesh.proto",
"protobufs/meshtastic/remote_hardware.proto",
"protobufs/meshtastic/admin.proto",
"protobufs/meshtastic/paxcount.proto",
"protobufs/meshtastic/storeforward.proto",
];
let includes = &["protobufs"];
if let Err(e) = compile_protos(protos, includes) {
eprintln!("Error could not compile protobufs");
eprintln!("{e}");
std::process::exit(1);
}
}