You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Setup Prost and Tonic rules.
* Regenerate documentation
* Add more tests.
* Add more tests and address feedback.
* Regenerate documentation
* Add to proto docs page.
* Bump min supported bazel version.
* buildifier
* Always enable backtracing.
* Add more info to failing rename.
* Set min rust version to 1.62.0
* Handle rust keywords as package names.
* exclude windows from prost toolchain support.
* buildifier
* redundant
* Use prost-types to parse the file descriptor set.
* Cleanup and more tests.
* Move prost-types to toolchain definition.
* fix rustfmt
* Add example of building protos with complex imports
* impl Display
* Fix all tests
* Add rust checks for the complex import protos.
* Address feedback
* Fix buildifier
* Depend on remote-apis repo.
* Remove bazel remote apis due to file length and transitive dependency issues.
* Update patch and docs.
* Regenerate documentation
* Regenerate documentation
* Update docs.
---------
Co-authored-by: Daniel Wagner-Hall <[email protected]>
| <aid="rust_prost_library-name"></a>name | The name of the target. | none |
1815
+
| <aid="rust_prost_library-kwargs"></a>kwargs | Additional keyword arguments for the underlying <code>rust_prost_library</code> rule. | none |
1816
+
1817
+
1797
1818
<aid="rust_proto_repositories"></a>
1798
1819
1799
1820
## rust_proto_repositories
@@ -1998,6 +2019,25 @@ rust_test_suite(
1998
2019
| <aid="rust_test_suite-kwargs"></a>kwargs | Additional keyword arguments for the underyling [rust_test](#rust_test) targets. The <code>tags</code> argument is also passed to the generated <code>test_suite</code> target. | none |
Copy file name to clipboardExpand all lines: docs/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Failure to do so will result in rules attempting to match a `stable` toolchain w
93
93
94
94
## Supported bazel versions
95
95
96
-
The oldest version of Bazel the `main` branch is tested against is `5.2.0`. Previous versions may still be functional in certain environments, but this is the minimum version we strive to fully support.
96
+
The oldest version of Bazel the `main` branch is tested against is `6.0.0`. Previous versions may still be functional in certain environments, but this is the minimum version we strive to fully support.
97
97
98
98
We test these rules against the latest rolling releases of Bazel, and aim for compatibility with them, but prioritise stable releases over rolling releases where necessary.
These rules depends on the [`protobuf`](https://crates.io/crates/protobuf) and
57
+
These rules depend on the [`protobuf`](https://crates.io/crates/protobuf) and
47
58
the [`grpc`](https://crates.io/crates/grpc) crates in addition to the [protobuf
48
59
compiler](https://github.com/google/protobuf). To obtain these crates,
49
60
`rust_proto_repositories` imports the given crates using BUILD files generated with
@@ -114,6 +125,111 @@ but due to [bazelbuild/bazel#6889](https://github.com/bazelbuild/bazel/issues/68
114
125
all dependencies added via the toolchain ends-up being in the wrong
115
126
configuration.
116
127
128
+
## <aname="custom-prost-deps">Customizing `prost` and `tonic` Dependencies
129
+
130
+
These rules depend on the [`prost`] and [`tonic`] dependencies. To setup the necessary toolchain
131
+
for these rules, you must define a toolchain with the [`prost`], [`prost-types`], [`tonic`],[`protoc-gen-prost`], and [`protoc-gen-tonic`] crates as well as the [`protoc`] binary.
@@ -260,6 +376,25 @@ See @rules_rust//proto:BUILD for examples of defining the toolchain.
260
376
| <aid="rust_proto_toolchain-protoc"></a>protoc | The location of the <code>protoc</code> binary. It should be an executable target. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>@com_google_protobuf//:protoc</code> |
0 commit comments