From 1e5e904b47773b92ea46ba6e82feaaa2f006a9f4 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Thu, 16 May 2024 15:43:03 +0100 Subject: [PATCH] fix(prost-build): re-export `protoc_from_env` & `protoc_include_from_env` fixes: #1062 I'm adding to fix a breaking change introduced in https://github.com/tokio-rs/prost/pull/1020 which moved these items. Since `0.12.5` this is causing build failures after `cargo update`. ``` Compiling grpc-build v6.1.0 error[E0432]: unresolved imports `prost_build::protoc_from_env`, `prost_build::protoc_include_from_env` --> /Users/ethan.brierley/.cargo/registry/src/index.crates.io-6f17d22bba15001f/grpc-build-6.1.0/src/lib.rs:3:19 | 3 | use prost_build::{protoc_from_env, protoc_include_from_env, Module}; | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `protoc_include_from_env` in the root | | | no `protoc_from_env` in the root ``` --- prost-build/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prost-build/src/lib.rs b/prost-build/src/lib.rs index 2adccff71..361b6a351 100644 --- a/prost-build/src/lib.rs +++ b/prost-build/src/lib.rs @@ -149,7 +149,7 @@ mod message_graph; mod path; mod config; -pub use config::Config; +pub use config::{protoc_from_env, protoc_include_from_env, Config}; mod module; pub use module::Module;