Skip to content

Commit 61d1586

Browse files
committed
Regenerate documentation
1 parent 6cb92b2 commit 61d1586

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

docs/crate_universe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ bazel run //3rdparty:crates_vendor -- --repin
462462
```
463463

464464
Under the hood, `--repin` will trigger a [cargo update](https://doc.rust-lang.org/cargo/commands/cargo-update.html)
465-
call against the generated workspace. The following table describes how to controll particular values passed to the
465+
call against the generated workspace. The following table describes how to control particular values passed to the
466466
`cargo update` command.
467467

468468
| Value | Cargo command |

docs/symbols.bzl

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ load(
2828
_crates_vendor = "crates_vendor",
2929
)
3030
load(
31-
"@rules_rust//proto:proto.bzl",
31+
"@rules_rust//proto:defs.bzl",
3232
_rust_grpc_library = "rust_grpc_library",
33+
_rust_prost_library = "rust_prost_library",
3334
_rust_proto_library = "rust_proto_library",
35+
_rust_tonic_library = "rust_tonic_library",
3436
)
3537
load(
3638
"@rules_rust//proto:repositories.bzl",
@@ -124,6 +126,8 @@ rust_doc_test = _rust_doc_test
124126

125127
rust_proto_library = _rust_proto_library
126128
rust_grpc_library = _rust_grpc_library
129+
rust_prost_library = _rust_prost_library
130+
rust_tonic_library = _rust_tonic_library
127131

128132
rust_bindgen = _rust_bindgen
129133
rust_bindgen_dependencies = _rust_bindgen_dependencies

proto/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ bzl_library(
4848
srcs = glob(["**/*.bzl"]),
4949
deps = [
5050
"//proto/3rdparty:bzl_lib",
51+
"//proto/prost:bzl_lib",
5152
],
5253
)

proto/prost/private/prost.bzl

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Rules for building protos in Rust with Prost and Tonic."""
22

3-
load("@rules_proto//proto:defs.bzl", "ProtoInfo")
3+
load("@rules_proto//proto:defs.bzl", "ProtoInfo", "proto_common")
44
load("//rust:defs.bzl", "rust_common")
55

66
# buildifier: disable=bzl-visibility
@@ -10,13 +10,6 @@ load("//rust/private:providers.bzl", "DepVariantInfo")
1010
load("//rust/private:rustc.bzl", "rustc_compile_action")
1111
load(":providers.bzl", "ProstProtoInfo", "TonicProtoInfo")
1212

13-
# This follows the exact same convention as the new upstream protobuf rules.
14-
# https://github.com/protocolbuffers/protobuf/blob/v23.3/rust/aspects.bzl#L15
15-
# The interface here hasn't changed in quite a while and since there's now
16-
# additional reliance on it there it seems unlikely that it will break and if
17-
# it does there should be a clear migration example for Starlark code there.
18-
proto_common = proto_common_do_not_use
19-
2013
PROST_EXTENSION = ".rs"
2114
TONIC_EXTENSION = ".tonic.rs"
2215

proto/repositories.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def rust_proto_dependencies():
2323
maybe(
2424
http_archive,
2525
name = "rules_proto",
26-
sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
27-
strip_prefix = "rules_proto-4.0.0",
26+
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
27+
strip_prefix = "rules_proto-5.3.0-21.7",
2828
urls = [
29-
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
30-
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
29+
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
30+
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
3131
],
3232
)
3333

0 commit comments

Comments
 (0)