commit | 5c8e443b53d02012375585cabb85fd940c78cfca | [log] [tgz] |
---|---|---|
author | Sebastian Gamboa <me@sagmor.com> | Wed Aug 31 00:23:28 2022 -0700 |
committer | GitHub <noreply@github.com> | Wed Aug 31 09:23:28 2022 +0200 |
tree | 718bc565198c741e55eb1e72ac80ce1c2bd1fb36 | |
parent | 066581b14bcbf87206c89ff5fcdd6f9915fd30fb [diff] |
Update protobuf to v21.5 (#139) * Update protobuf to v3.21.1 Signed-off-by: Yuki Okushi <jtitor@2k36.org> * Update `generate_sums.sh` Signed-off-by: Yuki Okushi <jtitor@2k36.org> * Update to v21.5 * Fix well_known_types_proto typo Signed-off-by: Yuki Okushi <jtitor@2k36.org> Co-authored-by: Yuki Okushi <jtitor@2k36.org>
This repository contains Starlark implementation of Protobuf rules in Bazel.
For a high-level overview of using Protocol Buffers and gRPC with Bazel, see https://bazel-contrib.github.io/SIG-rules-authors/proto-grpc.html.
For the list of Proto rules, see the Bazel documentation.
To get started with rules_proto
, add the following to your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_proto", sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d", strip_prefix = "rules_proto-4.0.0-3.20.0", urls = [ "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz", ], ) load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") rules_proto_dependencies() rules_proto_toolchains()
Then, in your BUILD
files, import and use the rules:
load("@rules_proto//proto:defs.bzl", "proto_library") proto_library( ... )
If you're migrating from the native proto rules to rules_proto
, you can use the following buildifier command to automate the changes to your BUILD
and .bzl
files:
buildifier --lint=fix --warnings=native-proto <path/to/BUILD>
Bazel and rules_proto
are the work of many contributors. We appreciate your help!
To contribute, please read the contribution guidelines: CONTRIBUTING.md.
Note that the rules_proto
use the GitHub issue tracker for bug reports and feature requests only.
For asking questions see:
#proto
on slack.bazel.build