From 308c852e3955b99c7c0d83e68c159567bdc3bd76 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Wed, 17 May 2023 16:50:15 +0200 Subject: [PATCH] Regenerate documentation --- docs/flatten.md | 7 +++++-- docs/rust_repositories.md | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/flatten.md b/docs/flatten.md index 5fea2fdbcd..8cce6cb2c9 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1844,7 +1844,8 @@ rust_repositories(kwargs)
 rust_repository_set(name, exec_triple, target_settings, version, versions, allocator_library,
                     global_allocator_library, extra_target_triples, iso_date, rustfmt_version,
-                    edition, dev_components, sha256s, urls, auth, register_toolchain)
+                    edition, dev_components, sha256s, urls, auth, register_toolchain,
+                    exec_compatible_with, default_target_compatible_with)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -1861,7 +1862,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r | 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"]. | `[]` | | allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | `None` | | global_allocator_library | Target that provides allocator functions a global allocator is used with cc_common.link. | `None` | -| extra_target_triples | Additional rust-style targets that this set of toolchains should support. | `[]` | +| extra_target_triples | Additional rust-style targets that this set of toolchains should support. If a map, values should be (optional) target_compatible_with lists for that particular target triple. | `{}` | | iso_date | The date of the tool. | `None` | | rustfmt_version | The version of rustfmt to be associated with the toolchain. | `None` | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | `None` | @@ -1870,6 +1871,8 @@ Assembles a remote repository for the given toolchain params, produces a proxy r | 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"]` | | auth | Auth object compatible with repository_ctx.download to use when downloading files. See [repository_ctx.download](https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download) for more details. | `None` | | register_toolchain | If True, the generated rust_toolchain target will become a registered toolchain. | `True` | +| exec_compatible_with | A list of constraints for the execution platform for this toolchain. | `None` | +| default_target_compatible_with | A list of constraints for the target platform for this toolchain when the exec platform is the same as the target platform. | `None` | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index 1e7e8f524c..86aeabe98e 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -296,7 +296,8 @@ rust_repositories(kwargs)
 rust_repository_set(name, exec_triple, target_settings, version, versions, allocator_library,
                     global_allocator_library, extra_target_triples, iso_date, rustfmt_version,
-                    edition, dev_components, sha256s, urls, auth, register_toolchain)
+                    edition, dev_components, sha256s, urls, auth, register_toolchain,
+                    exec_compatible_with, default_target_compatible_with)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -313,7 +314,7 @@ Assembles a remote repository for the given toolchain params, produces a proxy r | 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"]. | `[]` | | allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | `None` | | global_allocator_library | Target that provides allocator functions a global allocator is used with cc_common.link. | `None` | -| extra_target_triples | Additional rust-style targets that this set of toolchains should support. | `[]` | +| extra_target_triples | Additional rust-style targets that this set of toolchains should support. If a map, values should be (optional) target_compatible_with lists for that particular target triple. | `{}` | | iso_date | The date of the tool. | `None` | | rustfmt_version | The version of rustfmt to be associated with the toolchain. | `None` | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | `None` | @@ -322,6 +323,8 @@ Assembles a remote repository for the given toolchain params, produces a proxy r | 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"]` | | auth | Auth object compatible with repository_ctx.download to use when downloading files. See [repository_ctx.download](https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download) for more details. | `None` | | register_toolchain | If True, the generated rust_toolchain target will become a registered toolchain. | `True` | +| exec_compatible_with | A list of constraints for the execution platform for this toolchain. | `None` | +| default_target_compatible_with | A list of constraints for the target platform for this toolchain when the exec platform is the same as the target platform. | `None` |