Skip to content

Commit 90808f0

Browse files
authored
Minor cleanup to documentation (#1505)
1 parent 735640f commit 90808f0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/index.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2222
# https://github.com/bazelbuild/rules_rust/releases
2323
http_archive(
2424
name = "rules_rust",
25-
sha256 = "7fb9b4fe1a6fb4341bdf7c623e619460ecc0f52d5061cc56abc750111fba8a87",
25+
sha256 = "6bfe75125e74155955d8a9854a8811365e6c0f3d33ed700bc17f39e32522c822",
2626
urls = [
27-
"https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.7.0/rules_rust-v0.7.0.tar.gz",
28-
"https://github.com/bazelbuild/rules_rust/releases/download/0.7.0/rules_rust-v0.7.0.tar.gz",
27+
"https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.9.0/rules_rust-v0.9.0.tar.gz",
28+
"https://github.com/bazelbuild/rules_rust/releases/download/0.9.0/rules_rust-v0.9.0.tar.gz",
2929
],
3030
)
3131

@@ -37,7 +37,7 @@ rust_register_toolchains()
3737
```
3838

3939
The rules are under active development, as such the lastest commit on the
40-
`main` branch should be used. `main` is only tested against `4.0.0` as the
40+
`main` branch should be used. `main` is only tested against `5.0.0` as the
4141
minimum supported version of Bazel. Though previous versions may still be
4242
functional in certain environments.
4343

@@ -47,8 +47,7 @@ functional in certain environments.
4747
- [rust_doc](rust_doc.md): rules for generating and testing rust documentation.
4848
- [rust_clippy](rust_clippy.md): rules for running [clippy](https://github.com/rust-lang/rust-clippy#readme).
4949
- [rust_fmt](rust_fmt.md): rules for running [rustfmt](https://github.com/rust-lang/rustfmt#readme).
50-
- [rust_proto](rust_proto.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers).
51-
and [gRPC](https://grpc.io) stubs.
50+
- [rust_proto](rust_proto.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs.
5251
- [rust_bindgen](rust_bindgen.md): rules for generating C++ bindings.
5352
- [rust_wasm_bindgen](rust_wasm_bindgen.md): rules for generating [WebAssembly](https://www.rust-lang.org/what/wasm) bindings.
5453
- [cargo](cargo.md): Rules dedicated to Cargo compatibility. ie: [`build.rs` scripts](https://doc.rust-lang.org/cargo/reference/build-scripts.html).
@@ -65,19 +64,19 @@ You can also browse the [full API in one page](flatten.md).
6564
To build with a particular version of the Rust compiler, pass that version to [`rust_register_toolchains`](flatten.md#rust_register_toolchains):
6665

6766
```python
68-
rust_register_toolchains(version = "1.59.0", edition="2018")
67+
rust_register_toolchains(version = "1.62.1", edition="2018")
6968
```
7069

7170
As well as an exact version, `version` can be set to `"nightly"` or `"beta"`. If set to these values, `iso_date` must also be set:
7271

7372
```python
74-
rust_register_toolchains(version = "nightly", iso_date = "2022-02-23", edition="2018")
73+
rust_register_toolchains(version = "nightly", iso_date = "2022-07-18", edition="2018")
7574
```
7675

7776
Similarly, `rustfmt_version` may also be configured:
7877

7978
```python
80-
rust_register_toolchains(rustfmt_version = "1.59.0")
79+
rust_register_toolchains(rustfmt_version = "1.62.1")
8180
```
8281

8382
## External Dependencies

0 commit comments

Comments
 (0)