Skip to content

Commit f37b9d6

Browse files
authored
Regenerate documentation (#559)
I forgot some docs in #500 This fixes them.
1 parent 1fe2315 commit f37b9d6

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

bindgen/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add
2424
external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](..)):
2525

2626
```python
27-
load("@io_bazel_rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
27+
load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
2828

2929
rust_bindgen_repositories()
3030
```
31-
This makes the default toolchain defined in [`@io_bazel_rules_rust`](./BUILD) available.
31+
This makes the default toolchain defined in [`@rules_rust`](./BUILD) available.
3232

3333
[raze]: https://github.com/google/cargo-raze
3434

@@ -57,7 +57,7 @@ need to create your own toolchain. To do so you can create a BUILD
5757
file with your [`rust_bindgen_toolchain`](../docs/index.md#rust_bindgen_toolchain) definition, for example:
5858

5959
```python
60-
load("@io_bazel_rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain")
60+
load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain")
6161

6262
rust_bindgen_toolchain(
6363
name = "bindgen-toolchain-impl",
@@ -70,7 +70,7 @@ rust_bindgen_toolchain(
7070
toolchain(
7171
name = "bindgen-toolchain",
7272
toolchain = "bindgen-toolchain-impl",
73-
toolchain_type = "@io_bazel_rules_rust//bindgen:bindgen_toolchain",
73+
toolchain_type = "@rules_rust//bindgen:bindgen_toolchain",
7474
)
7575
```
7676

docs/index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use the Rust rules, add the following to your `WORKSPACE` file to add the ext
1818
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919

2020
http_archive(
21-
name = "io_bazel_rules_rust",
21+
name = "rules_rust",
2222
sha256 = "b5d4d1c7609714dfef821355f40353c58aa1afb3803401b3442ed2355db9b0c7",
2323
strip_prefix = "rules_rust-8d2b4eeeff9dce24f5cbb36018f2d60ecd676639",
2424
urls = [
@@ -27,7 +27,7 @@ http_archive(
2727
],
2828
)
2929

30-
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
30+
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
3131

3232
rust_repositories()
3333
```
@@ -73,16 +73,16 @@ Currently the most common approach to managing external dependencies is using
7373

7474
## WebAssembly
7575

76-
To build a `rust_binary` for `wasm32-unknown-unknown` target add the `--platforms=@io_bazel_rules_rust//rust/platform:wasm` flag.
76+
To build a `rust_binary` for `wasm32-unknown-unknown` target add the `--platforms=@rules_rust//rust/platform:wasm` flag.
7777

7878
```command
79-
bazel build @examples//hello_world_wasm --platforms=@io_bazel_rules_rust//rust/platform:wasm
79+
bazel build @examples//hello_world_wasm --platforms=@rules_rust//rust/platform:wasm
8080
```
8181

82-
To build a `rust_binary` for `wasm32-wasi` target add the `--platforms=@io_bazel_rules_rust//rust/platform:wasi` flag.
82+
To build a `rust_binary` for `wasm32-wasi` target add the `--platforms=@rules_rust//rust/platform:wasi` flag.
8383

8484
```command
85-
bazel build @examples//hello_world_wasm --platforms=@io_bazel_rules_rust//rust/platform:wasi
85+
bazel build @examples//hello_world_wasm --platforms=@rules_rust//rust/platform:wasi
8686
```
8787

8888
`rust_wasm_bindgen` will automatically transition to the `wasm` platform and can be used when

proto/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To use the Rust proto rules, add the following to your `WORKSPACE` file to add t
2424
external repositories for the Rust proto toolchain (in addition to the [rust rules setup](..)):
2525

2626
```python
27-
load("@io_bazel_rules_rust//proto:repositories.bzl", "rust_proto_repositories")
27+
load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
2828

2929
rust_proto_repositories()
3030
```
@@ -58,7 +58,7 @@ need to create your own toolchain. To do so you can create a BUILD
5858
file with your toolchain definition, for example:
5959

6060
```python
61-
load("@io_bazel_rules_rust//proto:toolchain.bzl", "rust_proto_toolchain")
61+
load("@rules_rust//proto:toolchain.bzl", "rust_proto_toolchain")
6262

6363
rust_proto_toolchain(
6464
name = "proto-toolchain-impl",
@@ -73,7 +73,7 @@ rust_proto_toolchain(
7373
toolchain(
7474
name = "proto-toolchain",
7575
toolchain = ":proto-toolchain-impl",
76-
toolchain_type = "@io_bazel_rules_rust//proto:toolchain",
76+
toolchain_type = "@rules_rust//proto:toolchain",
7777
)
7878
```
7979

0 commit comments

Comments
 (0)