rules_proto
v4.1.0
published 2 days ago
283 stars
156 forks
13 watchers
Apache License 2.0
public
4 assets
66 downloads
4 MB
Compatibility level 1
X9U74wZ8stJzDdaY3svUle1E/bTDrFG+AlBYpSdsdbo=
Maintained byPaul Cody
v4.1.0
September 16, 2025
[expand for release notes]

rules_proto (v4)

build-status Go Reference

Bazel starlark rules for building protocol buffers +/- gRPC ✨.

bazel gazelle protobuf grpc

@build_stack_rules_proto provides:

  1. Rules for driving the protoc tool within a bazel workspace.
  2. A gazelle extension that generates rules based on the content of your .proto files.
  3. Example setups for a variety of languages.

MODULE.bazel

bazel_dep(name = "build_stack_rules_proto", version = "4.x.x")

NOTE: build_stack_rules_proto is still in the submission process to the bcr. Until merged, a git_override or other override is needed to consume this repository.

See https://registry.bazel.build/modules/build_stack_rules_proto for latest version.

NOTE: Version 4.x.x no longer supports WORKSPACE, please use the latest 3.x.x release for workspace compatibility.

Docs

Description Link
Documentation about the core ruleset CORE_RULES.md
Available Toolchains TOOLCHAINS.md
Guide to setting up the gazelle extension GAZELLE.md
Writing custom gazelle logic STARLARK.md
Examples example/README.md
Preconfigured plugins PLUGINS.md
Preconfigured rules RULES.md
A history of this repository HISTORY.md