Crate mz_build_tools

Source
Expand description

Provides access to tools required in build scripts.

For example, many crates have a build script that depends on the Protobuf compiler, protoc. If we’re building with Cargo we’ll bootstrap protoc by compiling it with [protobuf-src], but if we’re building with Bazel then we’ll use the version of protoc included in the runfiles.

Functions§

is_bazel_build
Returns if we’re currently building with Bazel.
protoc
Returns the path to protoc.
protoc_include
Returns the path to the protobuf includes directory.