diff --git a/Cargo.toml b/Cargo.toml index b0a1411..db491aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,5 @@ bytes = "1.5.0" prost = "0.12.3" [build-dependencies] +protobuf-src = "1.1.0" prost-build = "0.12.3" diff --git a/build.rs b/build.rs index 3cd6426..7356bd9 100644 --- a/build.rs +++ b/build.rs @@ -1,8 +1,11 @@ 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",