]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Build with a vendored protoc (#221)
authorSimon Cozens <simon@simon-cozens.org>
Fri, 7 Feb 2025 09:57:19 +0000 (09:57 +0000)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2025 09:57:19 +0000 (09:57 +0000)
Cargo.toml
build.rs

index 6b68c6f2d4388cbf843f3a46f1735a5679b3cf75..ada24cfc1926f772cac22144ba149c44cbfeb5d2 100644 (file)
@@ -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"
index c5e4c45c4b75e0b3b128f654891496ee8e22654c..2279fbb10b5e2cd087f8a57ff0167d6379de8d69 100644 (file)
--- 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");