From f37b9d6a552e9412285e627f30cb124e709f4f7a Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Wed, 27 Jan 2021 09:24:12 -0800 Subject: [PATCH] Regenerate documentation (#559) I forgot some docs in #500 This fixes them. --- bindgen/README.md | 8 ++++---- docs/index.md | 12 ++++++------ proto/README.md | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bindgen/README.md b/bindgen/README.md index 79eee77f47..27a8696ddd 100644 --- a/bindgen/README.md +++ b/bindgen/README.md @@ -24,11 +24,11 @@ To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](..)): ```python -load("@io_bazel_rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories") +load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories") rust_bindgen_repositories() ``` -This makes the default toolchain defined in [`@io_bazel_rules_rust`](./BUILD) available. +This makes the default toolchain defined in [`@rules_rust`](./BUILD) available. [raze]: https://github.com/google/cargo-raze @@ -57,7 +57,7 @@ need to create your own toolchain. To do so you can create a BUILD file with your [`rust_bindgen_toolchain`](../docs/index.md#rust_bindgen_toolchain) definition, for example: ```python -load("@io_bazel_rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain") +load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain") rust_bindgen_toolchain( name = "bindgen-toolchain-impl", @@ -70,7 +70,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen-toolchain", toolchain = "bindgen-toolchain-impl", - toolchain_type = "@io_bazel_rules_rust//bindgen:bindgen_toolchain", + toolchain_type = "@rules_rust//bindgen:bindgen_toolchain", ) ``` diff --git a/docs/index.md b/docs/index.md index 3c50f10699..1ea5e81333 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,7 +18,7 @@ To use the Rust rules, add the following to your `WORKSPACE` file to add the ext load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( - name = "io_bazel_rules_rust", + name = "rules_rust", sha256 = "b5d4d1c7609714dfef821355f40353c58aa1afb3803401b3442ed2355db9b0c7", strip_prefix = "rules_rust-8d2b4eeeff9dce24f5cbb36018f2d60ecd676639", urls = [ @@ -27,7 +27,7 @@ http_archive( ], ) -load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") +load("@rules_rust//rust:repositories.bzl", "rust_repositories") rust_repositories() ``` @@ -73,16 +73,16 @@ Currently the most common approach to managing external dependencies is using ## WebAssembly -To build a `rust_binary` for `wasm32-unknown-unknown` target add the `--platforms=@io_bazel_rules_rust//rust/platform:wasm` flag. +To build a `rust_binary` for `wasm32-unknown-unknown` target add the `--platforms=@rules_rust//rust/platform:wasm` flag. ```command -bazel build @examples//hello_world_wasm --platforms=@io_bazel_rules_rust//rust/platform:wasm +bazel build @examples//hello_world_wasm --platforms=@rules_rust//rust/platform:wasm ``` -To build a `rust_binary` for `wasm32-wasi` target add the `--platforms=@io_bazel_rules_rust//rust/platform:wasi` flag. +To build a `rust_binary` for `wasm32-wasi` target add the `--platforms=@rules_rust//rust/platform:wasi` flag. ```command -bazel build @examples//hello_world_wasm --platforms=@io_bazel_rules_rust//rust/platform:wasi +bazel build @examples//hello_world_wasm --platforms=@rules_rust//rust/platform:wasi ``` `rust_wasm_bindgen` will automatically transition to the `wasm` platform and can be used when diff --git a/proto/README.md b/proto/README.md index 3d6ec78ff4..6d59045d8a 100644 --- a/proto/README.md +++ b/proto/README.md @@ -24,7 +24,7 @@ To use the Rust proto rules, add the following to your `WORKSPACE` file to add t external repositories for the Rust proto toolchain (in addition to the [rust rules setup](..)): ```python -load("@io_bazel_rules_rust//proto:repositories.bzl", "rust_proto_repositories") +load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories") rust_proto_repositories() ``` @@ -58,7 +58,7 @@ need to create your own toolchain. To do so you can create a BUILD file with your toolchain definition, for example: ```python -load("@io_bazel_rules_rust//proto:toolchain.bzl", "rust_proto_toolchain") +load("@rules_rust//proto:toolchain.bzl", "rust_proto_toolchain") rust_proto_toolchain( name = "proto-toolchain-impl", @@ -73,7 +73,7 @@ rust_proto_toolchain( toolchain( name = "proto-toolchain", toolchain = ":proto-toolchain-impl", - toolchain_type = "@io_bazel_rules_rust//proto:toolchain", + toolchain_type = "@rules_rust//proto:toolchain", ) ```