pub fn protoc() -> PathBuf
Expand description
Returns the path to protoc
.
Looks for protoc
in the following places:
- Bazel runfiles, if we’re building with Bazel.
- Bootstraps
protoc
via protobuf-src, if default features are enabled. PROTOC
environment variable, if it’s set.- The system’s
$PATH
, viawhich
.
If protoc
can’t be found then this function will panic.