From 1ac428a198cd955fc5af697b7177672ada623ccb Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 7 Feb 2025 09:57:19 +0000 Subject: [PATCH] Build with a vendored protoc (#221) --- Cargo.toml | 1 + build.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6b68c6f2..ada24cfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ serde_json = "1.0" prost-build = "0.13" protobuf-support = "3.7.1" protobuf = "3.7.1" +protoc-bin-vendored = "3.1.0" protobuf-parse = "3.7.1" glob = "0" prettyplease = "0.2" diff --git a/build.rs b/build.rs index c5e4c45c..2279fbb1 100644 --- a/build.rs +++ b/build.rs @@ -21,6 +21,7 @@ fn main() { // Now we use the prost crate to compile them, so that we can // generate Rust structs. let mut config = prost_build::Config::new(); + config.protoc_executable(protoc_bin_vendored::protoc_bin_path().unwrap()); // config.boxed(".google.languages_public.LanguageProto.sample_text"); // config.boxed(".google.languages_public.LanguageProto.exemplar_chars");