From 2fe33cf8df6ac50ed0e5c479a7cdcf06121f5484 Mon Sep 17 00:00:00 2001 From: PhantomShift <83253309+PhantomShift@users.noreply.github.com> Date: Tue, 13 Feb 2024 18:42:43 -0500 Subject: [PATCH] Set protoc path variable --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 53b18ea..b8bc8e0 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,8 @@ extern crate prost_build; fn main() { + std::env::set_var("PROTOC", "/usr/bin/protoc"); + if let Err(e) = prost_build::compile_protos(&["src/neko.proto"],&["src/"]) { println!("cargo:warning=Error occured when compiling neko.proto; did you generate it with proto_gen?"); println!("cargo:warning={}", e.to_string());