commit | fcfc67b0ab862ff54d312970548fb91b2b721334 | [log] [tgz] |
---|---|---|
author | Blaze Rules Copybara <blaze-rules@google.com> | Mon Oct 10 02:08:29 2022 -0700 |
committer | Blaze Rules Copybara <blaze-rules@google.com> | Mon Oct 10 02:08:29 2022 -0700 |
tree | a1bcf29b3188fcc5b2984b5e97fb60c806a745c7 | |
parent | d3702796e768abe7086d2dc7e299d3f7aeb1dd34 [diff] | |
parent | 04253b988939348b11ba2857d4f26f216e7a1ee4 [diff] |
Merge pull request #149 from aspect-build:readme PiperOrigin-RevId: 480026574
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 WORKSPACE
file snippet from the latest release.
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