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_toolchain_repository-name"></a>name | A unique name for this repository. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
1210
+
| <aid="rust_toolchain_repository-auth"></a>auth | Auth object compatible with repository_ctx.download to use when downloading files. See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
1210
1211
| <aid="rust_toolchain_repository-dev_components"></a>dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | Boolean | optional | False |
1211
1212
| <aid="rust_toolchain_repository-edition"></a>edition | The rust edition to be used by default. | String | optional | "2018" |
1212
1213
| <aid="rust_toolchain_repository-exec_triple"></a>exec_triple | The Rust-style target that this compiler runs on | String | required ||
@@ -1797,7 +1798,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -1821,6 +1822,7 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with
1821
1822
| <aid="rust_repository_set-dev_components"></a>dev_components | Whether to download the rustc-dev components. Requires version to be "nightly". Defaults to False. | <code>False</code> |
1822
1823
| <aid="rust_repository_set-sha256s"></a>sha256s | A dict associating tool subdirectories to sha256 hashes. See [rust_repositories](#rust_repositories) for more details. | <code>None</code> |
1823
1824
| <aid="rust_repository_set-urls"></a>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). Defaults to ['https://static.rust-lang.org/dist/{}.tar.gz']| <code>["https://static.rust-lang.org/dist/{}.tar.gz"]</code> |
1825
+
| <aid="rust_repository_set-auth"></a>auth | Auth object compatible with repository_ctx.download to use when downloading files. See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details. | <code>None</code> |
| <aid="rust_toolchain_repository-name"></a>name | A unique name for this repository. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
130
+
| <aid="rust_toolchain_repository-auth"></a>auth | Auth object compatible with repository_ctx.download to use when downloading files. See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
130
131
| <aid="rust_toolchain_repository-dev_components"></a>dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | Boolean | optional | False |
131
132
| <aid="rust_toolchain_repository-edition"></a>edition | The rust edition to be used by default. | String | optional | "2018" |
132
133
| <aid="rust_toolchain_repository-exec_triple"></a>exec_triple | The Rust-style target that this compiler runs on | String | required ||
@@ -212,7 +213,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains.
@@ -236,5 +237,6 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with
236
237
| <aid="rust_repository_set-dev_components"></a>dev_components | Whether to download the rustc-dev components. Requires version to be "nightly". Defaults to False. | <code>False</code> |
237
238
| <aid="rust_repository_set-sha256s"></a>sha256s | A dict associating tool subdirectories to sha256 hashes. See [rust_repositories](#rust_repositories) for more details. | <code>None</code> |
238
239
| <aid="rust_repository_set-urls"></a>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). Defaults to ['https://static.rust-lang.org/dist/{}.tar.gz']| <code>["https://static.rust-lang.org/dist/{}.tar.gz"]</code> |
240
+
| <aid="rust_repository_set-auth"></a>auth | Auth object compatible with repository_ctx.download to use when downloading files. See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details. | <code>None</code> |
"Auth object compatible with repository_ctx.download to use when downloading files. "+
176
+
"See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details."
177
+
),
178
+
),
173
179
"dev_components": attr.bool(
174
180
doc="Whether to download the rustc-dev components (defaults to False). Requires version to be \"nightly\".",
175
181
default=False,
@@ -255,7 +261,8 @@ def rust_repository_set(
255
261
edition=None,
256
262
dev_components=False,
257
263
sha256s=None,
258
-
urls=DEFAULT_STATIC_RUST_URL_TEMPLATES):
264
+
urls=DEFAULT_STATIC_RUST_URL_TEMPLATES,
265
+
auth=None):
259
266
"""Assembles a remote repository for the given toolchain params, produces a proxy repository \
260
267
to contain the toolchain declaration, and registers the toolchains.
261
268
@@ -278,6 +285,8 @@ def rust_repository_set(
278
285
sha256s (str, optional): A dict associating tool subdirectories to sha256 hashes. See
279
286
[rust_repositories](#rust_repositories) for more details.
280
287
urls (list, optional): 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). Defaults to ['https://static.rust-lang.org/dist/{}.tar.gz']
288
+
auth (dict): Auth object compatible with repository_ctx.download to use when downloading files.
289
+
See https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download for more details.
0 commit comments