diff options
author | Blaze Rules Copybara <blaze-rules@google.com> | 2022-10-10 02:08:29 -0700 |
---|---|---|
committer | Blaze Rules Copybara <blaze-rules@google.com> | 2022-10-10 02:08:29 -0700 |
commit | fcfc67b0ab862ff54d312970548fb91b2b721334 (patch) | |
tree | a1bcf29b3188fcc5b2984b5e97fb60c806a745c7 | |
parent | d3702796e768abe7086d2dc7e299d3f7aeb1dd34 (diff) | |
parent | 04253b988939348b11ba2857d4f26f216e7a1ee4 (diff) | |
download | bazelbuild-rules-proto-fcfc67b0ab862ff54d312970548fb91b2b721334.tar.gz |
Merge pull request #149 from aspect-build:readme
PiperOrigin-RevId: 480026574
-rw-r--r-- | .bcr/metadata.template.json | 2 | ||||
-rw-r--r-- | README.md | 18 |
2 files changed, 3 insertions, 17 deletions
diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json index c29a377..07d71fd 100644 --- a/.bcr/metadata.template.json +++ b/.bcr/metadata.template.json @@ -1,5 +1,5 @@ { - "homepage": "https://github.com/bazelbuild/rules_proto" + "homepage": "https://github.com/bazelbuild/rules_proto", "maintainers": [], "versions": [], "yanked_versions": {} @@ -12,22 +12,8 @@ For the list of Proto rules, see the Bazel ## Getting Started -To get started with `rules_proto`, add the following to your `WORKSPACE` file: - -```starlark -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() -``` +To get started with `rules_proto`, add the `WORKSPACE` file snippet from the +[latest release](https://github.com/bazelbuild/rules_proto/releases). Then, in your `BUILD` files, import and use the rules: |