diff --git a/docs/flatten.md b/docs/flatten.md index 312020fff5..072d1d9295 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1790,15 +1790,15 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every target is required to specify its edition attribute. | `None` | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. See [rust_toolchain_repository.include_rustc_srcs](#rust_toolchain_repository-include_rustc_srcs). for more details | `False` | | allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | `None` | -| iso_date | The date of the nightly or beta release (ignored if the version is a specific version). | `None` | +| iso_date | **Deprecated**: Use versions instead. | `None` | | register_toolchains | If true, repositories will be generated to produce and register rust_toolchain targets. | `True` | -| rustfmt_version | The version of rustfmt. Either "nightly", "beta", or an exact version. Defaults to version if not specified. | `"nightly/2022-12-15"` | +| rustfmt_version | The version of rustfmt. | `"nightly/2022-12-15"` | | rust_analyzer_version | The version of Rustc to pair with rust-analyzer. | `None` | | sha256s | A dict associating tool subdirectories to sha256 hashes. | `None` | | extra_target_triples | Additional rust-style targets that rust toolchains should support. | `["wasm32-unknown-unknown", "wasm32-wasi"]` | | urls | A list of mirror urls containing the tools from the Rust-lang static file server. These must contain the '{}' used to substitute the tool being fetched (using .format). | `["https://static.rust-lang.org/dist/{}.tar.gz"]` | -| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | `None` | -| versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. ["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]. | `["1.66.0", "nightly/2022-12-15"]` | +| version | **Deprecated**: Use versions instead. | `None` | +| versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. ["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]. | `[]` | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index ab1e5dd22e..3ba4136ce5 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -257,15 +257,15 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every target is required to specify its edition attribute. | `None` | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. See [rust_toolchain_repository.include_rustc_srcs](#rust_toolchain_repository-include_rustc_srcs). for more details | `False` | | allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | `None` | -| iso_date | The date of the nightly or beta release (ignored if the version is a specific version). | `None` | +| iso_date | **Deprecated**: Use versions instead. | `None` | | register_toolchains | If true, repositories will be generated to produce and register rust_toolchain targets. | `True` | -| rustfmt_version | The version of rustfmt. Either "nightly", "beta", or an exact version. Defaults to version if not specified. | `"nightly/2022-12-15"` | +| rustfmt_version | The version of rustfmt. | `"nightly/2022-12-15"` | | rust_analyzer_version | The version of Rustc to pair with rust-analyzer. | `None` | | sha256s | A dict associating tool subdirectories to sha256 hashes. | `None` | | extra_target_triples | Additional rust-style targets that rust toolchains should support. | `["wasm32-unknown-unknown", "wasm32-wasi"]` | | urls | A list of mirror urls containing the tools from the Rust-lang static file server. These must contain the '{}' used to substitute the tool being fetched (using .format). | `["https://static.rust-lang.org/dist/{}.tar.gz"]` | -| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | `None` | -| versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. ["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]. | `["1.66.0", "nightly/2022-12-15"]` | +| version | **Deprecated**: Use versions instead. | `None` | +| versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. ["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]. | `[]` |