rules_proto
7.0.2
published 1 week ago
167 stars
69 forks
7 watchers
Apache License 2.0
public
1 assets
3,339,201 downloads
48 KB
Compatability level 1
DlxkolmabibGoD1hYiQtIx7MDeIZU0w4y0QCFx3vIeg=
7.0.2
November 12, 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.0.1")

Using WORKSPACE:


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

http_archive(
    name = "rules_proto",
    sha256 = "0e5c64a2599a6e26c6a03d6162242d231ecc0de219534c38cb4402171def21e8",
    strip_prefix = "rules_proto-7.0.2",
    url = "https://github.com/bazelbuild/rules_proto/releases/download/7.0.2/rules_proto-7.0.2.tar.gz",
)

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

load("@rules_proto//proto:setup.bzl", "rules_proto_setup")
rules_proto_setup()

What's Changed

  • Adding back reference to ProtoLangToolchainInfo

Full Changelog: https://github.com/bazelbuild/rules_proto/compare/7.0.1...7.0.2

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.