We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df814bb commit b378bf8Copy full SHA for b378bf8
prost-build/src/lib.rs
@@ -126,11 +126,12 @@
126
//! ### Compiling `protoc` from source
127
//!
128
//! To compile `protoc` from source you can use the `protobuf-src` crate and
129
-//! set the correct environment variables.
+//! set the path to `protoc`.
130
//! ```no_run,ignore, rust
131
-//! std::env::set_var("PROTOC", protobuf_src::protoc());
+//! let mut prost_build = prost_build::Config::new();
132
+//! prost_build.protoc_executable(protobuf_src::protoc());
133
-//! // Now compile your proto files via prost-build
134
+//! // Now compile your proto files with the configuration
135
//! ```
136
137
//! [`protobuf-src`]: https://docs.rs/protobuf-src
0 commit comments