xx
.md

protoc

protoc is a dependency that provisions an official Protobuf compiler package and puts its executable directory first in PATH. It is not a function and takes no arguments. Use protobuf_generate for built-in code generators.

Load an exact stable release version in x.y or x.y.z form, without a leading v. Versions before 3.0.0 are unsupported. Package availability also varies by host:

On first use, xx downloads and verifies the official compiler package. Later runs reuse it. Bundled standard .proto includes are available to code generation without a separate installation.

Example

load("@[email protected]", "protoc")
load("@os@1", "os_run")

os_run(("protoc", "--version"), deps=[protoc])