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
Support target_settings in rust_repository_set and rust_toolchain_repository (#1758)
* support target_settings in rust_repository_set and rust_toolchain_repository
* Regenerate documentation
Co-authored-by: UebelAndre <[email protected]>
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -1840,6 +1840,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r
1840
1840
| :-------------| :-------------| :-------------|
1841
1841
|<a id="rust_repository_set-name"></a>name | The name of the generated repository | none |
1842
1842
|<a id="rust_repository_set-exec_triple"></a>exec_triple | The Rust-style target that this compiler runs on | none |
1843
+
|<a id="rust_repository_set-target_settings"></a>target_settings | A list of config_settings that must be satisfied by the target configuration in order for this set of toolchains to be selected during toolchain resolution. |`[]`|
1843
1844
|<a id="rust_repository_set-version"></a>version | The version of the tool among "nightly", "beta', or an exact version. | `None` |
1844
1845
|<a id="rust_repository_set-versions"></a>versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. <code>["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]</code>. |`[]`|
1845
1846
|<a id="rust_repository_set-include_rustc_srcs"></a>include_rustc_srcs |**Deprecated**- instead see [rust_analyzer_toolchain_repository](#rust_analyzer_toolchain_repository). | `False` |
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -1942,6 +1944,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r
1942
1944
|<a id="rust_toolchain_repository-target_triple"></a>target_triple | The Rust-style target to build for. | none |
1943
1945
|<a id="rust_toolchain_repository-exec_compatible_with"></a>exec_compatible_with | A list of constraints for the execution platform for this toolchain. |`None`|
1944
1946
|<a id="rust_toolchain_repository-target_compatible_with"></a>target_compatible_with | A list of constraints for the target platform for this toolchain. |`None`|
1947
+
|<a id="rust_toolchain_repository-target_settings"></a>target_settings | A list of config_settings that must be satisfied by the target configuration in order for this toolchain to be selected during toolchain resolution. |`[]`|
1945
1948
|<a id="rust_toolchain_repository-channel"></a>channel | The channel of the Rust toolchain. |`None`|
1946
1949
|<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. | `False` |
1947
1950
|<a id="rust_toolchain_repository-allocator_library"></a>allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. |`None`|
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -305,6 +305,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r
| <aid="rust_repository_set-name"></a>name | The name of the generated repository | none |
307
307
| <aid="rust_repository_set-exec_triple"></a>exec_triple | The Rust-style target that this compiler runs on | none |
308
+
| <aid="rust_repository_set-target_settings"></a>target_settings | A list of config_settings that must be satisfied by the target configuration in order for this set of toolchains to be selected during toolchain resolution. |`[]`|
308
309
| <aid="rust_repository_set-version"></a>version | The version of the tool among "nightly", "beta', or an exact version. |`None`|
309
310
| <aid="rust_repository_set-versions"></a>versions | A list of toolchain versions to download. This paramter only accepts one versions per channel. E.g. <code>["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]</code>. |`[]`|
310
311
| <aid="rust_repository_set-include_rustc_srcs"></a>include_rustc_srcs |**Deprecated** - instead see [rust_analyzer_toolchain_repository](#rust_analyzer_toolchain_repository). |`False`|
@@ -326,8 +327,9 @@ Assembles a remote repository for the given toolchain params, produces a proxy r
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -343,6 +345,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r
343
345
| <aid="rust_toolchain_repository-target_triple"></a>target_triple | The Rust-style target to build for. | none |
344
346
| <aid="rust_toolchain_repository-exec_compatible_with"></a>exec_compatible_with | A list of constraints for the execution platform for this toolchain. |`None`|
345
347
| <aid="rust_toolchain_repository-target_compatible_with"></a>target_compatible_with | A list of constraints for the target platform for this toolchain. |`None`|
348
+
| <aid="rust_toolchain_repository-target_settings"></a>target_settings | A list of config_settings that must be satisfied by the target configuration in order for this toolchain to be selected during toolchain resolution. |`[]`|
346
349
| <aid="rust_toolchain_repository-channel"></a>channel | The channel of the Rust toolchain. |`None`|
347
350
| <aid="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. |`False`|
348
351
| <aid="rust_toolchain_repository-allocator_library"></a>allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. |`None`|
channel (str, optional): The channel of the Rust toolchain.
468
469
exec_compatible_with (list, optional): A list of constraints for the execution platform for this toolchain.
469
470
target_compatible_with (list, optional): A list of constraints for the target platform for this toolchain.
471
+
target_settings (list, optional): A list of config_settings that must be satisfied by the target configuration in order for this toolchain to be selected during toolchain resolution.
470
472
include_rustc_srcs (bool, optional): Whether to download rustc's src code. This is required in order to use rust-analyzer support.
471
473
allocator_library (str, optional): Target that provides allocator functions when rust_library targets are embedded in a cc_binary.
exec_triple (str): The Rust-style target that this compiler runs on
801
+
target_settings (list, optional): A list of config_settings that must be satisfied by the target configuration in order for this set of toolchains to be selected during toolchain resolution.
796
802
version (str): The version of the tool among "nightly", "beta', or an exact version.
797
803
versions (list, optional): A list of toolchain versions to download. This paramter only accepts one versions
798
804
per channel. E.g. `["1.65.0", "nightly/2022-11-02", "beta/2020-12-30"]`.
0 commit comments