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
| <aid="rust_analyzer_toolchain-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
197
+
| <aid="rust_analyzer_toolchain-rustc_srcs"></a>rustc_srcs | The source code of rustc. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | required ||
198
+
199
+
180
200
<aid="rust_binary"></a>
181
201
182
202
## rust_binary
@@ -1168,8 +1188,8 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r
|<a id="rust_toolchain_repository_proxy-name"></a>name | A unique name for this repository. |<a href="https://bazel.build/docs/build-ref.html#name">Name</a>| required ||
1183
-
|<a id="rust_toolchain_repository_proxy-exec_compatible_with"></a>exec_compatible_with |TODO| List of strings | optional | [] |
1184
-
|<a id="rust_toolchain_repository_proxy-exec_triple"></a>exec_triple | The Rust-style target triple for the compilation platform | String | required ||
1185
-
|<a id="rust_toolchain_repository_proxy-parent_workspace_name"></a>parent_workspace_name | The name of the other rust_toolchain_repository | String | required ||
1203
+
|<a id="rust_toolchain_repository_proxy-exec_compatible_with"></a>exec_compatible_with | A list of constraints for the execution platform for this toolchain. | List of strings | optional | [] |
1186
1204
|<a id="rust_toolchain_repository_proxy-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry <code>"@foo": "@bar"</code> declares that, forany time this repository depends on <code>@foo</code> (such as a dependency on <code>@foo//some:target</code>, it should actually resolve that dependency within globally-declared <code>@bar</code> (<code>@bar//some:target</code>). |<a href="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a>| required ||
1187
-
|<a id="rust_toolchain_repository_proxy-target_compatible_with"></a>target_compatible_with |TODO| List of strings | optional | [] |
1188
-
|<a id="rust_toolchain_repository_proxy-target_triple"></a>target_triple | The Rust-style target that this compiler builds for| String | required ||
1205
+
|<a id="rust_toolchain_repository_proxy-target_compatible_with"></a>target_compatible_with | A list of constraints for the target platform for this toolchain. | List of strings | optional | [] |
1206
+
|<a id="rust_toolchain_repository_proxy-toolchain"></a>toolchain | The name of the toolchain implementation target. | String | required ||
1207
+
|<a id="rust_toolchain_repository_proxy-toolchain_type"></a>toolchain_type | The toolchain type of the toolchain to declare | String | required ||
Composes a single workspace containing the toolchain components for compiling on a given platform to a series of target platforms.
1202
1221
1203
-
A given instance of this rule should be accompanied by a rust_toolchain_repository_proxy invocation to declare its toolchains to Bazel; the indirection allows separating toolchain selection from toolchain fetching.
1222
+
A given instance of this rule should be accompanied by a toolchain_repository_proxy invocation to declare its toolchains to Bazel; the indirection allows separating toolchain selection from toolchain fetching.
1204
1223
1205
1224
**ATTRIBUTES**
1206
1225
@@ -1834,9 +1853,9 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with
1834
1853
|<a id="rust_toolchain_repository-target_triple"></a>target_triple | The Rust-style target to build for. | none |
1835
1854
|<a id="rust_toolchain_repository-exec_compatible_with"></a>exec_compatible_with | A list of constraints for the execution platform for this toolchain. |<code>None</code>|
1836
1855
|<a id="rust_toolchain_repository-target_compatible_with"></a>target_compatible_with | A list of constraints for the target platform for this toolchain. |<code>None</code>|
1837
-
|<a id="rust_toolchain_repository-include_rustc_srcs"></a>include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. Defaults to False. | <code>False</code> |
1838
-
|<a id="rust_toolchain_repository-iso_date"></a>iso_date | The date of the tool. Defaults to None. |<code>None</code>|
1839
-
|<a id="rust_toolchain_repository-rustfmt_version"></a>rustfmt_version | The version of rustfmt to be associated with the toolchain. Defaults to None. |<code>None</code>|
1856
+
|<a id="rust_toolchain_repository-include_rustc_srcs"></a>include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. | <code>False</code> |
1857
+
|<a id="rust_toolchain_repository-iso_date"></a>iso_date | The date of the tool. |<code>None</code>|
1858
+
|<a id="rust_toolchain_repository-rustfmt_version"></a>rustfmt_version | The version of rustfmt to be associated with the toolchain. |<code>None</code>|
1840
1859
|<a id="rust_toolchain_repository-edition"></a>edition | The rust edition to be used by default (2015, 2018, or2021). If absent, every rule is required to specify its <code>edition</code> attribute. |<code>None</code>|
1841
1860
|<a id="rust_toolchain_repository-dev_components"></a>dev_components | Whether to download the rustc-dev components. Requires version to be "nightly". Defaults to False. |<code>False</code>|
1842
1861
|<a id="rust_toolchain_repository-sha256s"></a>sha256s | A dict associating tool subdirectories to sha256 hashes. See [rust_repositories](#rust_repositories) for more details. | <code>None</code> |
| <aid="rust_analyzer_toolchain-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
98
+
| <aid="rust_analyzer_toolchain-rustc_srcs"></a>rustc_srcs | The source code of rustc. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | required ||
0 commit comments