Skip to content

Commit

Permalink
doc: change reference to proto_compile into proto_library (#158)
Browse files Browse the repository at this point in the history
proto_compile was the name from rules_proto and proto_library is the
actual correct name for native proto support in Bazel.
  • Loading branch information
damienmg authored and mfarrugi committed Nov 13, 2018
1 parent 7b47f55 commit 3cc196d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Builds a Rust library crate from a set of proto_library-s.
<td>
<code>List of labels, required</code>
<p>
list of <code>proto_compile</code> dependencies that will be built. One
crate for each <code>proto_compile</code> will be created with the corresponding
list of <code>proto_library</code> dependencies that will be built. One
crate for each <code>proto_library</code> will be created with the corresponding
stubs.
</p>
</td>
Expand All @@ -82,7 +82,7 @@ Builds a Rust library crate from a set of proto_library-s.
load("@io_bazel_rules_rust//proto:proto.bzl", "rust_proto_library")
load("@io_bazel_rules_rust//proto:toolchain.bzl", "PROTO_COMPILE_DEPS")

proto_compile(
proto_library(
name = "my_proto",
srcs = ["my.proto"]
)
Expand Down Expand Up @@ -132,8 +132,8 @@ Builds a Rust library crate from a set of proto_library-s suitable for gRPC.
<td>
<code>List of labels, required</code>
<p>
list of <code>proto_compile</code> dependencies that will be built. One
crate for each <code>proto_compile</code> will be created with the corresponding
list of <code>proto_library</code> dependencies that will be built. One
crate for each <code>proto_library</code> will be created with the corresponding
gRPC stubs.
</p>
</td>
Expand All @@ -147,7 +147,7 @@ Builds a Rust library crate from a set of proto_library-s suitable for gRPC.
load("@io_bazel_rules_rust//proto:proto.bzl", "rust_grpc_library")
load("@io_bazel_rules_rust//proto:toolchain.bzl", "GRPC_COMPILE_DEPS")

proto_compile(
proto_library(
name = "my_proto",
srcs = ["my.proto"]
)
Expand Down Expand Up @@ -216,4 +216,4 @@ inserting the following statement in your `WORKSPACE` file:

```python
register_toolchains(["//package:toolchain"])
```
```
12 changes: 6 additions & 6 deletions proto/proto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ rust_proto_library = rule(
Args:
name: name of the target.
deps: list of proto_compile dependencies that will be built. One
crate for each proto_compile will be created with the corresponding
deps: list of proto_library dependencies that will be built. One
crate for each proto_library will be created with the corresponding
stubs.
Example:
Expand All @@ -161,7 +161,7 @@ Example:
load("@io_bazel_rules_rust//proto:proto.bzl", "rust_proto_library")
load("@io_bazel_rules_rust//proto:toolchain.bzl", "PROTO_COMPILE_DEPS")
proto_compile(
proto_library(
name = "my_proto",
srcs = ["my.proto"]
)
Expand Down Expand Up @@ -207,8 +207,8 @@ rust_grpc_library = rule(
Args:
name: name of the target.
deps: list of proto_compile dependencies that will be built. One
crate for each proto_compile will be created with the corresponding
deps: list of proto_library dependencies that will be built. One
crate for each proto_library will be created with the corresponding
gRPC stubs.
Example:
Expand All @@ -217,7 +217,7 @@ Example:
load("@io_bazel_rules_rust//proto:proto.bzl", "rust_grpc_library")
load("@io_bazel_rules_rust//proto:toolchain.bzl", "GRPC_COMPILE_DEPS")
proto_compile(
proto_library(
name = "my_proto",
srcs = ["my.proto"]
)
Expand Down

0 comments on commit 3cc196d

Please sign in to comment.