Skip to content

Commit

Permalink
fix(prost-build): re-export error_message_protoc_not_found, `protoc…
Browse files Browse the repository at this point in the history
…_from_env` & `protoc_include_from_env` (#1063)

fixes: #1062

I'm adding to fix a breaking change introduced in #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
```
  • Loading branch information
eopb authored May 17, 2024
1 parent 26405ab commit 4b11315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prost-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ mod message_graph;
mod path;

mod config;
pub use config::Config;
pub use config::{
error_message_protoc_not_found, protoc_from_env, protoc_include_from_env, Config,
};

mod module;
pub use module::Module;
Expand Down

0 comments on commit 4b11315

Please sign in to comment.