rules_proto
7.1.0
published 2 months ago
172 stars
70 forks
7 watchers
Apache License 2.0
public
1 assets
5,960,557 downloads
36 KB
Compatability level 1
FKIlhwq06RhpZSz9ae8gKCd/wdxJENZdNTti1uCuIfQ=
Maintained byJerry Berg,
7.1.0
December 18, 2024

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_proto", version = "7.1.0")

Using WORKSPACE:


load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_proto",
    sha256 = "14a225870ab4e91869652cfd69ef2028277fc1dc4910d65d353b62d6e0ae21f4",
    strip_prefix = "rules_proto-7.1.0",
    url = "https://github.com/bazelbuild/rules_proto/releases/download/7.1.0/rules_proto-7.1.0.tar.gz",
)

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
rules_proto_dependencies()

load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")
rules_proto_toolchains()

What's Changed

Full Changelog: https://github.com/bazelbuild/rules_proto/compare/7.0.3...7.1.0

Deps:
Assets:

Protobuf Rules for Bazel

  • Postsubmit Build status

This repository is deprecated.

The proto library implementation proto_library and rules for other languages like Java, Python, C++ are in protobuf repository.

Roadmap

As of May 2024, we decided to move the implementation of the rules together with proto compiler into protobuf repository.

As such this repository is deprecated and serves only as a helper in the migration.