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