Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions prost-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@
//! ### Compiling `protoc` from source
//!
//! To compile `protoc` from source you can use the `protobuf-src` crate and
//! set the correct environment variables.
//! set the path to `protoc`.
//! ```no_run,ignore, rust
//! std::env::set_var("PROTOC", protobuf_src::protoc());
//! let mut prost_build = prost_build::Config::new();
//! prost_build.protoc_executable(protobuf_src::protoc());
//!
//! // Now compile your proto files via prost-build
//! // Now compile your proto files with the configuration
//! ```
//!
//! [`protobuf-src`]: https://docs.rs/protobuf-src
Expand Down
Loading