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 4030c50 commit a0feaf4Copy full SHA for a0feaf4
prost-build/src/lib.rs
@@ -125,11 +125,12 @@
125
//! ### Compiling `protoc` from source
126
//!
127
//! To compile `protoc` from source you can use the `protobuf-src` crate and
128
-//! set the correct environment variables.
+//! set the path to `protoc`.
129
//! ```no_run,ignore, rust
130
-//! std::env::set_var("PROTOC", protobuf_src::protoc());
+//! let mut prost_build = prost_build::Config::new();
131
+//! prost_build.protoc_executable(protobuf_src::protoc());
132
-//! // Now compile your proto files via prost-build
133
+//! // Now compile your proto files with the configuration
134
//! ```
135
136
//! [`protobuf-src`]: https://docs.rs/protobuf-src
0 commit comments