Skip to content
Deprecated. Please use https://github.com/bazelbuild/rules_proto instead
Branch: master
Clone or download
Yannic and Copybara Service [rules_proto] First prototype of starlark_proto_library
GitOrigin-RevId: 8293cf0b54c1b4df152242cf1ef116f7b6ff2031
Latest commit 4a4b83a Jul 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bazelci Add Bazel CI presubmit configuration Jun 24, 2019
proto [rules_proto] First prototype of starlark_proto_library Jul 6, 2019
src/cc [rules_proto] First prototype of starlark_proto_library Jul 6, 2019
tests
.gitignore Export of internal changes Jun 13, 2019
.travis.yml [rules_proto] Add skeleton for starlark_proto_library Jul 6, 2019
CONTRIBUTING.md Add contribution guideline Jun 23, 2019
LICENSE Export of internal changes Jun 13, 2019
README.md
WORKSPACE [rules_proto] Add skeleton for starlark_proto_library Jul 6, 2019

README.md

Protobuf Rules for Bazel

This repository contains Starlark implementation of Protobuf rules in Bazel.

For the list of Proto rules, see the Bazel documentation.

Getting Started

There is no need to use rules from this repository just yet. If you want to use rules_proto anyway, add the following to your WORKSPACE file:

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

http_archive(
    name = "build_bazel_rules_proto",
    urls = ["https://github.com/Yannic/rules_proto/archive/TODO"],
    sha256 = "TODO",
)
load("//proto:repositories.bzl", "rules_proto_dependencies")
load("//proto:repositories.bzl", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()

Then, in your BUILD files, import and use the rules:

load("@build_bazel_rules_proto//proto:defs.bzl", "proto_library")

proto_library(
    ...
)

Migration Tools

In the future, this repository will also contain tools to migrate your project for Bazel incompatible changes.

Contributing

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:

You can’t perform that action at this time.