From 500551b7c3a539ecd67dd6987e50f9fdd1a1018b Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" Date: Sat, 30 Nov 2024 15:38:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20bazelbui?= =?UTF-8?q?ld/rules=5Frust@ba6af156465ee5d183e41f04a07645ce564f6c67=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crate_universe.html | 4 ++-- crate_universe_bzlmod.html | 4 ++-- print.html | 8 ++++---- searchindex.js | 2 +- searchindex.json | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crate_universe.html b/crate_universe.html index d3287e67d7..a9600b7ebf 100644 --- a/crate_universe.html +++ b/crate_universe.html @@ -474,7 +474,7 @@

render_configThe configuration flags to use for rendering. Use //crate_universe:defs.bzl\%render_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" repository_nameThe name of the repository to generate for remote vendor modes. If unset, the label name will be usedStringoptional"" splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] vendor_pathThe path to a directory to write files into. Absolute paths will be treated as relative to the workspace rootStringoptional"crates" @@ -816,7 +816,7 @@

rust_toolchain_rustc_templateThe template to use for finding the host rustc binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), {cfg} (eg. 'exec'), {channel} (eg. 'stable'), and {tool} (eg. 'cargo.exe') will be replaced in the string if present.Stringoptional"@rust_{system}_{arch}__{triple}__{channel}_tools//:bin/{tool}" rust_versionThe version of Rust the currently registered toolchain is using. Eg. 1.56.0, or nightly/2021-09-08Stringoptional"1.82.0" splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

ENVIRONMENT VARIABLES

diff --git a/crate_universe_bzlmod.html b/crate_universe_bzlmod.html index d847166d7e..c82d3a8434 100644 --- a/crate_universe_bzlmod.html +++ b/crate_universe_bzlmod.html @@ -449,7 +449,7 @@

from_cargo

generate_build_scriptsWhether or not to generate cargo build scripts by default.BooleanoptionalTrue manifestsA list of Cargo manifests (Cargo.toml files).List of labelsoptional[] splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

@@ -506,7 +506,7 @@

from_specs

generate_binariesWhether to generate rust_binary targets for all the binary crates in every package. By default only the rust_library targets are generated.BooleanoptionalFalse generate_build_scriptsWhether or not to generate cargo build scripts by default.BooleanoptionalTrue splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

diff --git a/print.html b/print.html index 5ed9df5118..0e9341b33a 100644 --- a/print.html +++ b/print.html @@ -3011,7 +3011,7 @@

from_cargo

generate_build_scriptsWhether or not to generate cargo build scripts by default.BooleanoptionalTrue manifestsA list of Cargo manifests (Cargo.toml files).List of labelsoptional[] splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

@@ -3068,7 +3068,7 @@

from_specs

generate_binariesWhether to generate rust_binary targets for all the binary crates in every package. By default only the rust_library targets are generated.BooleanoptionalFalse generate_build_scriptsWhether or not to generate cargo build scripts by default.BooleanoptionalTrue splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

@@ -3405,7 +3405,7 @@

render_configThe configuration flags to use for rendering. Use //crate_universe:defs.bzl\%render_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" repository_nameThe name of the repository to generate for remote vendor modes. If unset, the label name will be usedStringoptional"" splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] vendor_pathThe path to a directory to write files into. Absolute paths will be treated as relative to the workspace rootStringoptional"crates" @@ -3747,7 +3747,7 @@

rust_toolchain_rustc_templateThe template to use for finding the host rustc binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), {cfg} (eg. 'exec'), {channel} (eg. 'stable'), and {tool} (eg. 'cargo.exe') will be replaced in the string if present.Stringoptional"@rust_{system}_{arch}__{triple}__{channel}_tools//:bin/{tool}" rust_versionThe version of Rust the currently registered toolchain is using. Eg. 1.56.0, or nightly/2021-09-08Stringoptional"1.82.0" splicing_configThe configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used.Stringoptional"" -supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasi", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"] +supported_platform_triplesA set of all platform triples to consider when generating dependencies.List of stringsoptional["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-pc-windows-msvc", "aarch64-unknown-fuchsia", "aarch64-unknown-linux-gnu", "aarch64-unknown-nixos-gnu", "aarch64-unknown-nto-qnx710", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-pc-windows-msvc", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "riscv64gc-unknown-none-elf", "s390x-unknown-linux-gnu", "thumbv7em-none-eabi", "thumbv8m.main-none-eabi", "wasm32-unknown-unknown", "wasm32-wasip1", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-pc-windows-msvc", "x86_64-unknown-freebsd", "x86_64-unknown-fuchsia", "x86_64-unknown-linux-gnu", "x86_64-unknown-nixos-gnu", "x86_64-unknown-none"]

ENVIRONMENT VARIABLES

diff --git a/searchindex.js b/searchindex.js index 5c655e3d97..ea7e3b7f13 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Object.assign(window.search, {"doc_urls":["index.html#rules-rust","index.html#setup","index.html#bzlmod","index.html#workspace","index.html#specifying-rust-version","index.html#supported-bazel-versions","index.html#supported-platforms","rules.html#rules","rules.html#experimental-rules","rules.html#3rd-party-rules","rules.html#full-api","rust.html#rust","rust.html#capture_clippy_output","rust.html#error_format","rust.html#extra_rustc_flag","rust.html#extra_rustc_flags","rust.html#rust_binary","rust.html#rust_library","rust.html#rust_library_group","rust.html#rust_proc_macro","rust.html#rust_shared_library","rust.html#rust_static_library","rust.html#rust_test","rust.html#example-test-directory","rust.html#rust_test_suite","rust_doc.html#rust-doc","rust_doc.html#rust_doc","rust_doc.html#rust_doc_test","rust_clippy.html#rust-clippy","rust_clippy.html#overview","rust_clippy.html#setup","rust_clippy.html#rust_clippy","rust_clippy.html#rust_clippy_aspect","rust_fmt.html#rust-fmt","rust_fmt.html#overview","rust_fmt.html#setup","rust_fmt.html#tips","rust_fmt.html#rustfmt_test","rust_fmt.html#rustfmt_toolchain","rust_fmt.html#rustfmt_aspect","cargo.html#cargo","cargo.html#cargo_dep_env","cargo.html#cargo_build_script","cargo.html#cargo_env","cargo.html#cargo_bootstrap_repository","rust_analyzer.html#rust-analyzer","rust_analyzer.html#overview","rust_analyzer.html#setup","rust_analyzer.html#rust_analyzer_toolchain","rust_analyzer.html#rust_analyzer_aspect","flatten.html#rust-rules","flatten.html#capture_clippy_output","flatten.html#cargo_dep_env","flatten.html#error_format","flatten.html#extra_rustc_flag","flatten.html#extra_rustc_flags","flatten.html#incompatible_flag","flatten.html#rust_analyzer_toolchain","flatten.html#rust_binary","flatten.html#rust_clippy","flatten.html#rust_doc","flatten.html#rust_doc_test","flatten.html#rust_library","flatten.html#rust_library_group","flatten.html#rust_proc_macro","flatten.html#rust_shared_library","flatten.html#rust_static_library","flatten.html#rust_stdlib_filegroup","flatten.html#rust_test","flatten.html#example-test-directory","flatten.html#rust_toolchain","flatten.html#rustfmt_test","flatten.html#rustfmt_toolchain","flatten.html#crateinfo","flatten.html#depinfo","flatten.html#stdlibinfo","flatten.html#cargo_build_script","flatten.html#cargo_env","flatten.html#rules_rust_dependencies","flatten.html#rust_analyzer_toolchain_repository","flatten.html#rust_register_toolchains","flatten.html#rust_repositories","flatten.html#rust_repository_set","flatten.html#rust_test_suite","flatten.html#rust_toolchain_repository","flatten.html#rust_analyzer_aspect","flatten.html#rust_clippy_aspect","flatten.html#rustfmt_aspect","flatten.html#cargo_bootstrap_repository","flatten.html#rust_toolchain_repository_proxy","flatten.html#rust_toolchain_tools_repository","external_crates.html#external-dependencies","crate_universe_bzlmod.html#crate-universe","crate_universe_bzlmod.html#table-of-contents","crate_universe_bzlmod.html#setup","crate_universe_bzlmod.html#dependencies","crate_universe_bzlmod.html#cargo-workspaces","crate_universe_bzlmod.html#direct-dependencies","crate_universe_bzlmod.html#vendored-dependencies","crate_universe_bzlmod.html#crate","crate_universe_bzlmod.html#from_cargo","crate_universe_bzlmod.html#annotation","crate_universe_bzlmod.html#from_specs","crate_universe_bzlmod.html#spec","crate_universe.html#crate-universe","crate_universe.html#setup","crate_universe.html#rules","crate_universe.html#utility-macros","crate_universe.html#workflows","crate_universe.html#cargo-workspaces","crate_universe.html#direct-packages","crate_universe.html#binary-dependencies","crate_universe.html#dependencies-api","crate_universe.html#building-crates-with-complicated-dependencies","crate_universe.html#some-things-work-without-intervention","crate_universe.html#supplying-extra-tools-to-build","crate_universe.html#building-with-bazel-and-supplying-via-an-override","crate_universe.html#crates_vendor","crate_universe.html#repinning--updating-dependencies","crate_universe.html#aliases","crate_universe.html#all_crate_deps","crate_universe.html#crateannotation","crate_universe.html#crateselect","crate_universe.html#cratespec","crate_universe.html#crateworkspace_member","crate_universe.html#crate_deps","crate_universe.html#crate_repositories","crate_universe.html#crate_universe_dependencies","crate_universe.html#render_config","crate_universe.html#splicing_config","crate_universe.html#crates_repository","crate_universe.html#repinning--updating-dependencies-1","upstream_tooling.html#upstream-tooling","extensions.html#extensions","extensions.html#setup","extensions.html#bzlmod","extensions.html#workspace","rust_bindgen.html#rules_rust_bindgen","rust_bindgen.html#rules","rust_bindgen.html#setup","rust_bindgen.html#rust_bindgen","rust_bindgen.html#rust_bindgen_toolchain","rust_bindgen.html#rust_bindgen_library","rust_prost.html#rules_rust_prost","rust_prost.html#rules","rust_prost.html#setup","rust_prost.html#rust_prost_toolchain","rust_prost.html#rust_prost_library","rust_protobuf.html#rules_rust_protobuf","rust_protobuf.html#setup","rust_protobuf.html#rust_grpc_library","rust_protobuf.html#rust_proto_library","rust_wasm_bindgen.html#rules_rust_wasm_bindgen","rust_wasm_bindgen.html#setup","rust_wasm_bindgen.html#interfacing-with-javascript-rules","rust_wasm_bindgen.html#rust_wasm_bindgen","rust_wasm_bindgen.html#rust_wasm_bindgen_toolchain","rust_wasm_bindgen.html#rustwasmbindgeninfo"],"index":{"documentStore":{"docInfo":{"0":{"body":7,"breadcrumbs":3,"title":2},"1":{"body":12,"breadcrumbs":2,"title":1},"10":{"body":5,"breadcrumbs":3,"title":2},"100":{"body":215,"breadcrumbs":5,"title":1},"101":{"body":444,"breadcrumbs":5,"title":1},"102":{"body":198,"breadcrumbs":5,"title":1},"103":{"body":134,"breadcrumbs":5,"title":1},"104":{"body":24,"breadcrumbs":6,"title":2},"105":{"body":30,"breadcrumbs":5,"title":1},"106":{"body":2,"breadcrumbs":5,"title":1},"107":{"body":7,"breadcrumbs":6,"title":2},"108":{"body":24,"breadcrumbs":5,"title":1},"109":{"body":109,"breadcrumbs":6,"title":2},"11":{"body":12,"breadcrumbs":3,"title":1},"110":{"body":119,"breadcrumbs":6,"title":2},"111":{"body":146,"breadcrumbs":6,"title":2},"112":{"body":16,"breadcrumbs":6,"title":2},"113":{"body":21,"breadcrumbs":8,"title":4},"114":{"body":74,"breadcrumbs":8,"title":4},"115":{"body":48,"breadcrumbs":8,"title":4},"116":{"body":48,"breadcrumbs":9,"title":5},"117":{"body":110,"breadcrumbs":5,"title":1},"118":{"body":416,"breadcrumbs":7,"title":3},"119":{"body":101,"breadcrumbs":5,"title":1},"12":{"body":23,"breadcrumbs":3,"title":1},"120":{"body":106,"breadcrumbs":5,"title":1},"121":{"body":370,"breadcrumbs":5,"title":1},"122":{"body":26,"breadcrumbs":5,"title":1},"123":{"body":149,"breadcrumbs":5,"title":1},"124":{"body":31,"breadcrumbs":5,"title":1},"125":{"body":40,"breadcrumbs":5,"title":1},"126":{"body":14,"breadcrumbs":5,"title":1},"127":{"body":40,"breadcrumbs":5,"title":1},"128":{"body":243,"breadcrumbs":5,"title":1},"129":{"body":38,"breadcrumbs":5,"title":1},"13":{"body":25,"breadcrumbs":3,"title":1},"130":{"body":182,"breadcrumbs":5,"title":1},"131":{"body":706,"breadcrumbs":7,"title":3},"132":{"body":36,"breadcrumbs":4,"title":2},"133":{"body":9,"breadcrumbs":2,"title":1},"134":{"body":16,"breadcrumbs":2,"title":1},"135":{"body":51,"breadcrumbs":2,"title":1},"136":{"body":52,"breadcrumbs":2,"title":1},"137":{"body":9,"breadcrumbs":3,"title":1},"138":{"body":3,"breadcrumbs":3,"title":1},"139":{"body":57,"breadcrumbs":3,"title":1},"14":{"body":24,"breadcrumbs":3,"title":1},"140":{"body":109,"breadcrumbs":3,"title":1},"141":{"body":126,"breadcrumbs":3,"title":1},"142":{"body":105,"breadcrumbs":3,"title":1},"143":{"body":11,"breadcrumbs":3,"title":1},"144":{"body":2,"breadcrumbs":3,"title":1},"145":{"body":207,"breadcrumbs":3,"title":1},"146":{"body":138,"breadcrumbs":3,"title":1},"147":{"body":25,"breadcrumbs":3,"title":1},"148":{"body":11,"breadcrumbs":3,"title":1},"149":{"body":203,"breadcrumbs":3,"title":1},"15":{"body":52,"breadcrumbs":3,"title":1},"150":{"body":121,"breadcrumbs":3,"title":1},"151":{"body":118,"breadcrumbs":3,"title":1},"152":{"body":9,"breadcrumbs":3,"title":1},"153":{"body":51,"breadcrumbs":3,"title":1},"154":{"body":44,"breadcrumbs":5,"title":3},"155":{"body":75,"breadcrumbs":3,"title":1},"156":{"body":70,"breadcrumbs":3,"title":1},"157":{"body":31,"breadcrumbs":3,"title":1},"16":{"body":797,"breadcrumbs":3,"title":1},"17":{"body":572,"breadcrumbs":3,"title":1},"18":{"body":47,"breadcrumbs":3,"title":1},"19":{"body":475,"breadcrumbs":3,"title":1},"2":{"body":41,"breadcrumbs":2,"title":1},"20":{"body":586,"breadcrumbs":3,"title":1},"21":{"body":521,"breadcrumbs":3,"title":1},"22":{"body":126,"breadcrumbs":3,"title":1},"23":{"body":674,"breadcrumbs":5,"title":3},"24":{"body":109,"breadcrumbs":3,"title":1},"25":{"body":2,"breadcrumbs":4,"title":2},"26":{"body":170,"breadcrumbs":3,"title":1},"27":{"body":117,"breadcrumbs":3,"title":1},"28":{"body":2,"breadcrumbs":4,"title":2},"29":{"body":14,"breadcrumbs":3,"title":1},"3":{"body":48,"breadcrumbs":2,"title":1},"30":{"body":48,"breadcrumbs":3,"title":1},"31":{"body":72,"breadcrumbs":3,"title":1},"32":{"body":57,"breadcrumbs":3,"title":1},"33":{"body":3,"breadcrumbs":4,"title":2},"34":{"body":29,"breadcrumbs":3,"title":1},"35":{"body":85,"breadcrumbs":3,"title":1},"36":{"body":28,"breadcrumbs":3,"title":1},"37":{"body":30,"breadcrumbs":3,"title":1},"38":{"body":52,"breadcrumbs":3,"title":1},"39":{"body":61,"breadcrumbs":3,"title":1},"4":{"body":66,"breadcrumbs":4,"title":3},"40":{"body":4,"breadcrumbs":3,"title":1},"41":{"body":98,"breadcrumbs":3,"title":1},"42":{"body":396,"breadcrumbs":3,"title":1},"43":{"body":59,"breadcrumbs":3,"title":1},"44":{"body":294,"breadcrumbs":3,"title":1},"45":{"body":2,"breadcrumbs":4,"title":2},"46":{"body":19,"breadcrumbs":3,"title":1},"47":{"body":165,"breadcrumbs":3,"title":1},"48":{"body":38,"breadcrumbs":3,"title":1},"49":{"body":36,"breadcrumbs":3,"title":1},"5":{"body":35,"breadcrumbs":4,"title":3},"50":{"body":40,"breadcrumbs":4,"title":2},"51":{"body":23,"breadcrumbs":3,"title":1},"52":{"body":98,"breadcrumbs":3,"title":1},"53":{"body":25,"breadcrumbs":3,"title":1},"54":{"body":24,"breadcrumbs":3,"title":1},"55":{"body":52,"breadcrumbs":3,"title":1},"56":{"body":26,"breadcrumbs":3,"title":1},"57":{"body":38,"breadcrumbs":3,"title":1},"58":{"body":797,"breadcrumbs":3,"title":1},"59":{"body":72,"breadcrumbs":3,"title":1},"6":{"body":42,"breadcrumbs":3,"title":2},"60":{"body":170,"breadcrumbs":3,"title":1},"61":{"body":117,"breadcrumbs":3,"title":1},"62":{"body":572,"breadcrumbs":3,"title":1},"63":{"body":47,"breadcrumbs":3,"title":1},"64":{"body":475,"breadcrumbs":3,"title":1},"65":{"body":586,"breadcrumbs":3,"title":1},"66":{"body":521,"breadcrumbs":3,"title":1},"67":{"body":31,"breadcrumbs":3,"title":1},"68":{"body":126,"breadcrumbs":3,"title":1},"69":{"body":674,"breadcrumbs":5,"title":3},"7":{"body":38,"breadcrumbs":2,"title":1},"70":{"body":541,"breadcrumbs":3,"title":1},"71":{"body":30,"breadcrumbs":3,"title":1},"72":{"body":52,"breadcrumbs":3,"title":1},"73":{"body":187,"breadcrumbs":3,"title":1},"74":{"body":90,"breadcrumbs":3,"title":1},"75":{"body":106,"breadcrumbs":3,"title":1},"76":{"body":396,"breadcrumbs":3,"title":1},"77":{"body":59,"breadcrumbs":3,"title":1},"78":{"body":5,"breadcrumbs":3,"title":1},"79":{"body":124,"breadcrumbs":3,"title":1},"8":{"body":8,"breadcrumbs":3,"title":2},"80":{"body":264,"breadcrumbs":3,"title":1},"81":{"body":17,"breadcrumbs":3,"title":1},"82":{"body":283,"breadcrumbs":3,"title":1},"83":{"body":109,"breadcrumbs":3,"title":1},"84":{"body":249,"breadcrumbs":3,"title":1},"85":{"body":36,"breadcrumbs":3,"title":1},"86":{"body":57,"breadcrumbs":3,"title":1},"87":{"body":61,"breadcrumbs":3,"title":1},"88":{"body":294,"breadcrumbs":3,"title":1},"89":{"body":127,"breadcrumbs":3,"title":1},"9":{"body":26,"breadcrumbs":4,"title":3},"90":{"body":312,"breadcrumbs":3,"title":1},"91":{"body":9,"breadcrumbs":4,"title":2},"92":{"body":30,"breadcrumbs":6,"title":2},"93":{"body":12,"breadcrumbs":6,"title":2},"94":{"body":32,"breadcrumbs":5,"title":1},"95":{"body":12,"breadcrumbs":5,"title":1},"96":{"body":211,"breadcrumbs":6,"title":2},"97":{"body":116,"breadcrumbs":6,"title":2},"98":{"body":337,"breadcrumbs":6,"title":2},"99":{"body":67,"breadcrumbs":5,"title":1}},"docs":{"0":{"body":"This repository provides rules for building Rust projects with Bazel .","breadcrumbs":"Introduction » Rules Rust","id":"0","title":"Rules Rust"},"1":{"body":"The rules are released, and releases can be found on the GitHub Releases page . We recommend using the latest release from that page.","breadcrumbs":"Introduction » Setup","id":"1","title":"Setup"},"10":{"body":"You can also browse the full API in one page .","breadcrumbs":"Rules » Full API","id":"10","title":"Full API"},"100":{"body":"Generates a repo @crates from a Cargo.toml / Cargo.lock pair Attributes Name Description Type Mandatory Default name The name of the repo to generate Name optional \"crates\" cargo_config A Cargo configuration file. Label optional None cargo_lockfile The path to an existing Cargo.lock file Label optional None generate_binaries Whether to generate rust_binary targets for all the binary crates in every package. By default only the rust_library targets are generated. Boolean optional False generate_build_scripts Whether or not to generate cargo build scripts by default. Boolean optional True manifests A list of Cargo manifests (Cargo.toml files). List of labels optional [] splicing_config The configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used. String optional \"\" supported_platform_triples A set of all platform triples to consider when generating dependencies. List of strings optional [\"aarch64-apple-darwin\", \"aarch64-apple-ios\", \"aarch64-apple-ios-sim\", \"aarch64-linux-android\", \"aarch64-pc-windows-msvc\", \"aarch64-unknown-fuchsia\", \"aarch64-unknown-linux-gnu\", \"aarch64-unknown-nixos-gnu\", \"aarch64-unknown-nto-qnx710\", \"arm-unknown-linux-gnueabi\", \"armv7-linux-androideabi\", \"armv7-unknown-linux-gnueabi\", \"i686-apple-darwin\", \"i686-linux-android\", \"i686-pc-windows-msvc\", \"i686-unknown-freebsd\", \"i686-unknown-linux-gnu\", \"powerpc-unknown-linux-gnu\", \"riscv32imc-unknown-none-elf\", \"riscv64gc-unknown-none-elf\", \"s390x-unknown-linux-gnu\", \"thumbv7em-none-eabi\", \"thumbv8m.main-none-eabi\", \"wasm32-unknown-unknown\", \"wasm32-wasi\", \"wasm32-wasip1\", \"x86_64-apple-darwin\", \"x86_64-apple-ios\", \"x86_64-linux-android\", \"x86_64-pc-windows-msvc\", \"x86_64-unknown-freebsd\", \"x86_64-unknown-fuchsia\", \"x86_64-unknown-linux-gnu\", \"x86_64-unknown-nixos-gnu\", \"x86_64-unknown-none\"]","breadcrumbs":"External Crates » crate_universe (bzlmod) » from_cargo","id":"100","title":"from_cargo"},"101":{"body":"Attributes Name Description Type Mandatory Default deps A list of labels to add to a crate's rust_library::deps attribute. List of strings optional [] data A list of labels to add to a crate's rust_library::data attribute. List of strings optional [] additive_build_file A file containing extra contents to write to the bottom of generated BUILD files. Label optional None additive_build_file_content Extra contents to write to the bottom of generated BUILD files. String optional \"\" alias_rule Alias rule to use instead of native.alias(). Overrides render_config 's 'default_alias_rule'. String optional \"\" build_script_data A list of labels to add to a crate's cargo_build_script::data attribute. List of strings optional [] build_script_data_glob A list of glob patterns to add to a crate's cargo_build_script::data attribute List of strings optional [] build_script_deps A list of labels to add to a crate's cargo_build_script::deps attribute. List of strings optional [] build_script_env Additional environment variables to set on a crate's cargo_build_script::env attribute. Dictionary: String -> String optional {} build_script_proc_macro_deps A list of labels to add to a crate's cargo_build_script::proc_macro_deps attribute. List of strings optional [] build_script_rundir An override for the build script's rundir attribute. String optional \"\" build_script_rustc_env Additional environment variables to set on a crate's cargo_build_script::env attribute. Dictionary: String -> String optional {} build_script_toolchains A list of labels to set on a crates's cargo_build_script::toolchains attribute. List of labels optional [] build_script_tools A list of labels to add to a crate's cargo_build_script::tools attribute. List of strings optional [] compile_data A list of labels to add to a crate's rust_library::compile_data attribute. List of strings optional [] compile_data_glob A list of glob patterns to add to a crate's rust_library::compile_data attribute. List of strings optional [] crate The name of the crate the annotation is applied to String required crate_features A list of strings to add to a crate's rust_library::crate_features attribute. List of strings optional [] data_glob A list of glob patterns to add to a crate's rust_library::data attribute. List of strings optional [] disable_pipelining If True, disables pipelining for library targets for this crate. Boolean optional False extra_aliased_targets A list of targets to add to the generated aliases in the root crate_universe repository. Dictionary: String -> String optional {} gen_all_binaries If true, generates rust_binary targets for all of the crates bins Boolean optional False gen_binaries As a list, the subset of the crate's bins that should get rust_binary targets produced. List of strings optional [] gen_build_script An authorative flag to determine whether or not to produce cargo_build_script targets for the current crate. Supported values are 'on', 'off', and 'auto'. String optional \"auto\" override_target_bin An optional alternate taget to use when something depends on this crate to allow the parent repo to provide its own version of this dependency. Label optional None override_target_build_script An optional alternate taget to use when something depends on this crate to allow the parent repo to provide its own version of this dependency. Label optional None override_target_lib An optional alternate taget to use when something depends on this crate to allow the parent repo to provide its own version of this dependency. Label optional None override_target_proc_macro An optional alternate taget to use when something depends on this crate to allow the parent repo to provide its own version of this dependency. Label optional None patch_args The patch_args attribute of a Bazel repository rule. See http_archive.patch_args List of strings optional [] patch_tool The patch_tool attribute of a Bazel repository rule. See http_archive.patch_tool String optional \"\" patches The patches attribute of a Bazel repository rule. See http_archive.patches List of labels optional [] proc_macro_deps A list of labels to add to a crate's rust_library::proc_macro_deps attribute. List of strings optional [] repositories A list of repository names specified from crate.from_cargo(name=...) that this annotation is applied to. Defaults to all repositories. List of strings optional [] rustc_env Additional variables to set on a crate's rust_library::rustc_env attribute. Dictionary: String -> String optional {} rustc_env_files A list of labels to set on a crate's rust_library::rustc_env_files attribute. List of strings optional [] rustc_flags A list of strings to set on a crate's rust_library::rustc_flags attribute. List of strings optional [] shallow_since An optional timestamp used for crates originating from a git repository instead of a crate registry. This flag optimizes fetching the source code. String optional \"\" version The versions of the crate the annotation is applied to. Defaults to all versions. String optional \"*\"","breadcrumbs":"External Crates » crate_universe (bzlmod) » annotation","id":"101","title":"annotation"},"102":{"body":"Generates a repo @crates from the defined spec tags Attributes Name Description Type Mandatory Default name The name of the repo to generate Name optional \"crates\" cargo_config A Cargo configuration file. Label optional None generate_binaries Whether to generate rust_binary targets for all the binary crates in every package. By default only the rust_library targets are generated. Boolean optional False generate_build_scripts Whether or not to generate cargo build scripts by default. Boolean optional True splicing_config The configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used. String optional \"\" supported_platform_triples A set of all platform triples to consider when generating dependencies. List of strings optional [\"aarch64-apple-darwin\", \"aarch64-apple-ios\", \"aarch64-apple-ios-sim\", \"aarch64-linux-android\", \"aarch64-pc-windows-msvc\", \"aarch64-unknown-fuchsia\", \"aarch64-unknown-linux-gnu\", \"aarch64-unknown-nixos-gnu\", \"aarch64-unknown-nto-qnx710\", \"arm-unknown-linux-gnueabi\", \"armv7-linux-androideabi\", \"armv7-unknown-linux-gnueabi\", \"i686-apple-darwin\", \"i686-linux-android\", \"i686-pc-windows-msvc\", \"i686-unknown-freebsd\", \"i686-unknown-linux-gnu\", \"powerpc-unknown-linux-gnu\", \"riscv32imc-unknown-none-elf\", \"riscv64gc-unknown-none-elf\", \"s390x-unknown-linux-gnu\", \"thumbv7em-none-eabi\", \"thumbv8m.main-none-eabi\", \"wasm32-unknown-unknown\", \"wasm32-wasi\", \"wasm32-wasip1\", \"x86_64-apple-darwin\", \"x86_64-apple-ios\", \"x86_64-linux-android\", \"x86_64-pc-windows-msvc\", \"x86_64-unknown-freebsd\", \"x86_64-unknown-fuchsia\", \"x86_64-unknown-linux-gnu\", \"x86_64-unknown-nixos-gnu\", \"x86_64-unknown-none\"]","breadcrumbs":"External Crates » crate_universe (bzlmod) » from_specs","id":"102","title":"from_specs"},"103":{"body":"Attributes Name Description Type Mandatory Default artifact Set to 'bin' to pull in a binary crate as an artifact dependency. Requires a nightly Cargo. String optional \"\" branch The git branch of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. Specifying rev is recommended for fully-reproducible builds. String optional \"\" default_features Maps to the default-features flag. Boolean optional True features A list of features to use for the crate. List of strings optional [] git The Git url to use for the crate. Cannot be used with version. String optional \"\" lib If using artifact = 'bin', additionally setting lib = True declares a dependency on both the package's library and binary, as opposed to just the binary. Boolean optional False package The explicit name of the package. String required rev The git revision of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. String optional \"\" tag The git tag of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. Specifying rev is recommended for fully-reproducible builds. String optional \"\" version The exact version of the crate. Cannot be used with git. String optional \"\"","breadcrumbs":"External Crates » crate_universe (bzlmod) » spec","id":"103","title":"spec"},"104":{"body":"Crate Universe is a set of Bazel rule for generating Rust targets using Cargo. This doc describes using crate_universe from a WORKSPACE file. If you're using bzlmod, please see the bzlmod equivalent of this doc .","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Crate Universe","id":"104","title":"Crate Universe"},"105":{"body":"After loading rules_rust in your workspace, set the following to begin using crate_universe: load(\"@rules_rust//crate_universe:repositories.bzl\", \"crate_universe_dependencies\") crate_universe_dependencies() Note that if the current version of rules_rust is not a release artifact, you may need to set additional flags such as bootstrap = True on the crate_universe_dependencies call above or crates_repository::generator_urls in uses of crates_repository.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Setup","id":"105","title":"Setup"},"106":{"body":"crates_repository crates_vendor","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Rules","id":"106","title":"Rules"},"107":{"body":"crate_universe_dependencies crate.annotation crate.select crate.spec crate.workspace_member render_config splicing_config","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Utility Macros","id":"107","title":"Utility Macros"},"108":{"body":"The crates_repository rule (the primary repository rule of rules_rust's cargo support) supports a number of different ways users can express and organize their dependencies. The most common are listed below though there are more to be found in the ./examples/crate_universe directory.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Workflows","id":"108","title":"Workflows"},"109":{"body":"One of the simpler ways to wire up dependencies would be to first structure your project into a Cargo workspace . The crates_repository rule can ingest a root Cargo.toml file and generate dependencies from there. load(\"@rules_rust//crate_universe:defs.bzl\", \"crates_repository\") crates_repository( name = \"crate_index\", cargo_lockfile = \"//:Cargo.lock\", lockfile = \"//:Cargo.Bazel.lock\", manifests = [\"//:Cargo.toml\"],\n) load(\"@crate_index//:defs.bzl\", \"crate_repositories\") crate_repositories() The generated crates_repository contains helper macros which make collecting dependencies for Bazel targets simpler. Notably, the all_crate_deps and aliases macros (see Dependencies API ) commonly allow the Cargo.toml files to be the single source of truth for dependencies. Since these macros come from the generated repository, the dependencies and alias definitions they return will automatically update BUILD targets. load(\"@crate_index//:defs.bzl\", \"aliases\", \"all_crate_deps\")\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\", \"rust_test\") rust_library( name = \"lib\", aliases = aliases(), deps = all_crate_deps( normal = True, ), proc_macro_deps = all_crate_deps( proc_macro = True, ),\n) rust_test( name = \"unit_test\", crate = \":lib\", aliases = aliases( normal_dev = True, proc_macro_dev = True, ), deps = all_crate_deps( normal_dev = True, ), proc_macro_deps = all_crate_deps( proc_macro_dev = True, ),\n)","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Cargo Workspaces","id":"109","title":"Cargo Workspaces"},"11":{"body":"rust_binary rust_library rust_library_group rust_static_library rust_shared_library rust_proc_macro rust_test rust_test_suite error_format extra_rustc_flag extra_rustc_flags capture_clippy_output","breadcrumbs":"Rules » rust » Rust","id":"11","title":"Rust"},"110":{"body":"In cases where Rust targets have heavy interractions with other Bazel targests ( Cc , Proto , etc.), maintaining Cargo.toml files may have deminishing returns as things like rust-analyzer begin to be confused about missing targets or environment variables defined only in Bazel. In workspaces like this, it may be desirable to have a \"Cargo free\" setup. crates_repository supports this through the packages attribute. load(\"@rules_rust//crate_universe:defs.bzl\", \"crate\", \"crates_repository\", \"render_config\") crates_repository( name = \"crate_index\", cargo_lockfile = \"//:Cargo.lock\", lockfile = \"//:Cargo.Bazel.lock\", packages = { \"async-trait\": crate.spec( version = \"0.1.51\", ), \"mockall\": crate.spec( version = \"0.10.2\", ), \"tokio\": crate.spec( version = \"1.12.0\", ), }, # Setting the default package name to `\"\"` forces the use of the macros defined in this repository # to always use the root package when looking for dependencies or aliases. This should be considered # optional as the repository also exposes alises for easy access to all dependencies. render_config = render_config( default_package_name = \"\" ),\n) load(\"@crate_index//:defs.bzl\", \"crate_repositories\") crate_repositories() Consuming dependencies may be more ergonomic in this case through the aliases defined in the new repository. load(\"@rules_rust//rust:defs.bzl\", \"rust_library\", \"rust_test\") rust_library( name = \"lib\", deps = [ \"@crate_index//:tokio\", ], proc_macro_deps = [ \"@crate_index//:async-trait\", ],\n) rust_test( name = \"unit_test\", crate = \":lib\", deps = [ \"@crate_index//:mockall\", ],\n)","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Direct Packages","id":"110","title":"Direct Packages"},"111":{"body":"Neither of the above approaches supports depending on binary-only packages. In order to depend on a Cargo package that contains binaries and no library, you will need to do one of the following: Fork the package to add an empty lib.rs, which makes the package visible to Cargo metadata and compatible with the above approaches; Or handwrite your own build target for the binary, use http_archive to import its source code, and use crates_repository to make build targets for its dependencies. This is demonstrated below using the rustfilt crate as an example. # in WORKSPACE.bazel load(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\") http_archive( name = \"rustfilt\", build_file = \"//rustfilt:BUILD.rustfilt.bazel\", sha256 = \"c8d748b182c8f95224336d20dcc5609598af612581ce60cfb29da4dc8d0091f2\", strip_prefix = \"rustfilt-0.2.1\", type = \"tar.gz\", urls = [\"https://static.crates.io/crates/rustfilt/rustfilt-0.2.1.crate\"],\n) load(\"@rules_rust//crate_universe:defs.bzl\", \"crates_repository\") crates_repository( name = \"rustfilt_deps\", cargo_lockfile = \"//rustfilt:Cargo.lock\", manifests = [\"@rustfilt//:Cargo.toml\"],\n) load(\"@rustfilt_deps//:defs.bzl\", rustfilt_deps = \"crate_repositories\") rustfilt_deps() # in rustfilt/BUILD.rustfilt.bazel load(\"@rules_rust//rust:defs.bzl\", \"rust_binary\") rust_binary( name = \"rustfilt\", srcs = glob([\"src/**/*.rs\"]), edition = \"2018\", deps = [ \"@rustfilt_deps//:clap\", \"@rustfilt_deps//:lazy_static\", \"@rustfilt_deps//:regex\", \"@rustfilt_deps//:rustc-demangle\", ],\n) If you use either crates_repository or crates_vendor to depend on a Cargo package that contains both a library crate and binaries, by default only the library gets made available to Bazel. To generate Bazel targets for the binary crates as well, you must opt in to it with an annotation on the package: load(\"@rules_rust//crate_universe:defs.bzl\", \"crates_repository\", \"crate\") crates_repository( name = \"crate_index\", annotations = { \"thepackage\": [crate.annotation( gen_binaries = True, # Or, to expose just a subset of the package's binaries by name: gen_binaries = [\"rustfilt\"], )], }, # Or, to expose every binary of every package: generate_binaries = True, ...\n)","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Binary dependencies","id":"111","title":"Binary dependencies"},"112":{"body":"After rendering dependencies, convenience macros may also be generated to provide convenient accessors to larger sections of the dependency graph. aliases crate_deps all_crate_deps crate_repositories","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Dependencies API","id":"112","title":"Dependencies API"},"113":{"body":"Some crates have build.rs scripts which are complicated to run. Typically these build C++ (or other languages), or attempt to find pre-installed libraries on the build machine. There are a few approaches to making sure these run:","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Building crates with complicated dependencies","id":"113","title":"Building crates with complicated dependencies"},"114":{"body":"Some build scripts will happily run without any support needed. rules_rust already supplies a configured C++ toolchain as input to build script execution, and sets variables like CC, CXX, LD, LDFLAGS, etc as needed. Many crates which invoke a compiler with the default environment, or forward these env vars, will Just Work (e.g. if using cc-rs ). rules_rust is open to PRs which make build scripts more likely to work by default with intervention assuming they're broadly applicable (e.g. setting extra widely-known env vars is probably fine, wiring up additional toolchains like cmake that aren't present by default for most Bazel users probably isn't).","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Some things work without intervention","id":"114","title":"Some things work without intervention"},"115":{"body":"Some build scripts can be made to work by pulling in some extra files and making them available to the build script. Commonly this is done by passing the file to the build_script_data annotation for the crate, and using build_script_env to tell the build script where the file is. That env var may often use $(execroot) to get the path to the label, or $${pwd}/ as a prefix if the path given is relative to the execroot (as will frequently happen when using a toolchain).A There is an example of this in the \"complicated dependencies\" section of https://github.com/bazelbuild/rules_rust/blob/main/examples/crate_universe/WORKSPACE.bazel which builds libz-ng-sys.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Supplying extra tools to build","id":"115","title":"Supplying extra tools to build"},"116":{"body":"Some build scripts have hooks to allow replacing parts that are complicated to build with output prepared by Bazel. We can use those hooks by specifying paths (generally using the build_script_data and build_script_env annotations) and pointing them at labels which Bazel will then build. These env vars may often use $(execroot) to get the path to the label, or $${pwd}/ as a prefix if the path given is relative to the execroot (as will frequently happen when using a toolchain). There is an example of this in the \"complicated dependencies\" section of https://github.com/bazelbuild/rules_rust/blob/main/examples/crate_universe/WORKSPACE.bazel which builds boring-sys.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Building with Bazel and supplying via an override","id":"116","title":"Building with Bazel and supplying via an override"},"117":{"body":"crates_vendor(name, annotations, bazel, buildifier, cargo_bazel, cargo_config, cargo_lockfile, generate_binaries, generate_build_scripts, generate_target_compatible_with, manifests, mode, packages, render_config, repository_name, splicing_config, supported_platform_triples, vendor_path) A rule for defining Rust dependencies (crates) and writing targets for them to the current workspace. This rule is useful for users whose workspaces are expected to be consumed in other workspaces as the rendered BUILD files reduce the number of workspace dependencies, allowing for easier loads. This rule handles all the same workflows crate_universe rules do. Example: Given the following workspace structure: [workspace]/ WORKSPACE BUILD Cargo.toml 3rdparty/ BUILD src/ main.rs The following is something that'd be found in 3rdparty/BUILD: load(\"@rules_rust//crate_universe:defs.bzl\", \"crates_vendor\", \"crate\") crates_vendor( name = \"crates_vendor\", annotations = { \"rand\": [crate.annotation( default_features = False, features = [\"small_rng\"], )], }, cargo_lockfile = \"//:Cargo.Bazel.lock\", manifests = [\"//:Cargo.toml\"], mode = \"remote\", vendor_path = \"crates\", tags = [\"manual\"],\n) The above creates a target that can be run to write BUILD files into the 3rdparty directory next to where the target is defined. To run it, simply call: bazel run //3rdparty:crates_vendor","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crates_vendor","id":"117","title":"crates_vendor"},"118":{"body":"Repinning dependencies is controlled by both the CARGO_BAZEL_REPIN environment variable or the --repin flag to the crates_vendor binary. To update dependencies, simply add the flag ro your bazel run invocation. bazel run //3rdparty:crates_vendor -- --repin Under the hood, --repin will trigger a cargo update call against the generated workspace. The following table describes how to control particular values passed to the cargo update command. Value Cargo command Any of [true, 1, yes, on, workspace] cargo update --workspace Any of [full, eager, all] cargo update package_name cargo upgrade --package package_name package_name@1.2.3 cargo upgrade --package package_name --precise 1.2.3 ATTRIBUTES Name Description Type Mandatory Default name A unique name for this target. Name required annotations Extra settings to apply to crates. See crate.annotation . Dictionary: String -> List of strings optional {} bazel The path to a bazel binary used to locate the output_base for the current workspace. Label optional None buildifier The path to a buildifier binary used to format generated BUILD files. Label optional \"@rules_rust//crate_universe/private/vendor:buildifier\" cargo_bazel The cargo-bazel binary to use for vendoring. If this attribute is not set, then a CARGO_BAZEL_GENERATOR_PATH action env will be used. Label optional \"@@rules_rust~~cargo_bazel_bootstrap~cargo_bazel_bootstrap//:binary\" cargo_config A Cargo configuration file. Label optional None cargo_lockfile The path to an existing Cargo.lock file Label optional None generate_binaries Whether to generate rust_binary targets for all the binary crates in every package. By default only the rust_library targets are generated. Boolean optional False generate_build_scripts Whether or not to generate cargo build scripts by default. Boolean optional True generate_target_compatible_with DEPRECATED: Moved to render_config. Boolean optional True manifests A list of Cargo manifests (Cargo.toml files). List of labels optional [] mode Flags determining how crates should be vendored. local is where crate source and BUILD files are written to the repository. remote is where only BUILD files are written and repository rules used to fetch source code. String optional \"remote\" packages A set of crates (packages) specifications to depend on. See crate.spec . Dictionary: String -> String optional {} render_config The configuration flags to use for rendering. Use //crate_universe:defs.bzl\\%render_config to generate the value for this field. If unset, the defaults defined there will be used. String optional \"\" repository_name The name of the repository to generate for remote vendor modes. If unset, the label name will be used String optional \"\" splicing_config The configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used. String optional \"\" supported_platform_triples A set of all platform triples to consider when generating dependencies. List of strings optional [\"aarch64-apple-darwin\", \"aarch64-apple-ios\", \"aarch64-apple-ios-sim\", \"aarch64-linux-android\", \"aarch64-pc-windows-msvc\", \"aarch64-unknown-fuchsia\", \"aarch64-unknown-linux-gnu\", \"aarch64-unknown-nixos-gnu\", \"aarch64-unknown-nto-qnx710\", \"arm-unknown-linux-gnueabi\", \"armv7-linux-androideabi\", \"armv7-unknown-linux-gnueabi\", \"i686-apple-darwin\", \"i686-linux-android\", \"i686-pc-windows-msvc\", \"i686-unknown-freebsd\", \"i686-unknown-linux-gnu\", \"powerpc-unknown-linux-gnu\", \"riscv32imc-unknown-none-elf\", \"riscv64gc-unknown-none-elf\", \"s390x-unknown-linux-gnu\", \"thumbv7em-none-eabi\", \"thumbv8m.main-none-eabi\", \"wasm32-unknown-unknown\", \"wasm32-wasi\", \"wasm32-wasip1\", \"x86_64-apple-darwin\", \"x86_64-apple-ios\", \"x86_64-linux-android\", \"x86_64-pc-windows-msvc\", \"x86_64-unknown-freebsd\", \"x86_64-unknown-fuchsia\", \"x86_64-unknown-linux-gnu\", \"x86_64-unknown-nixos-gnu\", \"x86_64-unknown-none\"] vendor_path The path to a directory to write files into. Absolute paths will be treated as relative to the workspace root String optional \"crates\"","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » Repinning / Updating Dependencies","id":"118","title":"Repinning / Updating Dependencies"},"119":{"body":"aliases(normal, normal_dev, proc_macro, proc_macro_dev, build, build_proc_macro, package_name) Produces a map of Crate alias names to their original label If no dependency kinds are specified, normal and proc_macro are used by default. Setting any one flag will otherwise determine the contents of the returned dict. PARAMETERS Name Description Default Value normal If True, normal dependencies are included in the output list. False normal_dev If True, normal dev dependencies will be included in the output list.. False proc_macro If True, proc_macro dependencies are included in the output list. False proc_macro_dev If True, dev proc_macro dependencies are included in the output list. False build If True, build dependencies are included in the output list. False build_proc_macro If True, build proc_macro dependencies are included in the output list. False package_name The package name of the set of dependencies to look up. Defaults to native.package_name() when unset. None RETURNS dict: The aliases of all associated packages","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » aliases","id":"119","title":"aliases"},"12":{"body":"capture_clippy_output(name) Control whether to print clippy output or store it to a file, using the configured error_format. ATTRIBUTES Name Description Type Mandatory Default name A unique name for this target. Name required","breadcrumbs":"Rules » rust » capture_clippy_output","id":"12","title":"capture_clippy_output"},"120":{"body":"all_crate_deps(normal, normal_dev, proc_macro, proc_macro_dev, build, build_proc_macro, package_name) Finds the fully qualified label of all requested direct crate dependencies for the package where this macro is called. If no parameters are set, all normal dependencies are returned. Setting any one flag will otherwise impact the contents of the returned list. PARAMETERS Name Description Default Value normal If True, normal dependencies are included in the output list. False normal_dev If True, normal dev dependencies will be included in the output list.. False proc_macro If True, proc_macro dependencies are included in the output list. False proc_macro_dev If True, dev proc_macro dependencies are included in the output list. False build If True, build dependencies are included in the output list. False build_proc_macro If True, build proc_macro dependencies are included in the output list. False package_name The package name of the set of dependencies to look up. Defaults to native.package_name() when unset. None RETURNS list: A list of labels to generated rust targets (str)","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » all_crate_deps","id":"120","title":"all_crate_deps"},"121":{"body":"crate.annotation(version, additive_build_file, additive_build_file_content, alias_rule, build_script_compile_data, build_script_data, build_script_tools, build_script_data_glob, build_script_deps, build_script_env, build_script_proc_macro_deps, build_script_rundir, build_script_rustc_env, build_script_toolchains, compile_data, compile_data_glob, crate_features, data, data_glob, deps, extra_aliased_targets, gen_binaries, disable_pipelining, gen_build_script, patch_args, patch_tool, patches, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, shallow_since, override_targets) A collection of extra attributes and settings for a particular crate PARAMETERS Name Description Default Value version The version or semver-conditions to match with a crate. The wildcard * matches any version, including prerelease versions. \"*\" additive_build_file A file containing extra contents to write to the bottom of generated BUILD files. None additive_build_file_content Extra contents to write to the bottom of generated BUILD files. None alias_rule Alias rule to use instead of native.alias(). Overrides render_config 's 'default_alias_rule'. None build_script_compile_data A list of labels to add to a crate's cargo_build_script::compile_data attribute. None build_script_data A list of labels to add to a crate's cargo_build_script::data attribute. None build_script_tools A list of labels to add to a crate's cargo_build_script::tools attribute. None build_script_data_glob A list of glob patterns to add to a crate's cargo_build_script::data attribute. None build_script_deps A list of labels to add to a crate's cargo_build_script::deps attribute. None build_script_env Additional environment variables to set on a crate's cargo_build_script::env attribute. None build_script_proc_macro_deps A list of labels to add to a crate's cargo_build_script::proc_macro_deps attribute. None build_script_rundir An override for the build script's rundir attribute. None build_script_rustc_env Additional environment variables to set on a crate's cargo_build_script::env attribute. None build_script_toolchains A list of labels to set on a crates's cargo_build_script::toolchains attribute. None compile_data A list of labels to add to a crate's rust_library::compile_data attribute. None compile_data_glob A list of glob patterns to add to a crate's rust_library::compile_data attribute. None crate_features A list of strings to add to a crate's rust_library::crate_features attribute. None data A list of labels to add to a crate's rust_library::data attribute. None data_glob A list of glob patterns to add to a crate's rust_library::data attribute. None deps A list of labels to add to a crate's rust_library::deps attribute. None extra_aliased_targets A list of targets to add to the generated aliases in the root crate_universe repository. None gen_binaries As a list, the subset of the crate's bins that should get rust_binary targets produced. Or True to generate all, False to generate none. None disable_pipelining If True, disables pipelining for library targets for this crate. False gen_build_script An authorative flag to determine whether or not to produce cargo_build_script targets for the current crate. None patch_args The patch_args attribute of a Bazel repository rule. See http_archive.patch_args None patch_tool The patch_tool attribute of a Bazel repository rule. See http_archive.patch_tool None patches The patches attribute of a Bazel repository rule. See http_archive.patches None proc_macro_deps A list of labels to add to a crate's rust_library::proc_macro_deps attribute. None rustc_env Additional variables to set on a crate's rust_library::rustc_env attribute. None rustc_env_files A list of labels to set on a crate's rust_library::rustc_env_files attribute. None rustc_flags A list of strings to set on a crate's rust_library::rustc_flags attribute. None shallow_since An optional timestamp used for crates originating from a git repository instead of a crate registry. This flag optimizes fetching the source code. None override_targets A dictionary of alternate targets to use when something depends on this crate to allow the parent repo to provide its own version of this dependency. Keys can be proc-marco, custom-build, lib, bin. None RETURNS string: A json encoded string containing the specified version and separately all other inputs.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate.annotation","id":"121","title":"crate.annotation"},"122":{"body":"crate.select(common, selects) A Starlark Select for crate.annotation(). PARAMETERS Name Description Default Value common A value that applies to all configurations. none selects A dict of target_triple to values. none RETURNS struct: A struct representing the Starlark Select.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate.select","id":"122","title":"crate.select"},"123":{"body":"crate.spec(package, version, artifact, lib, default_features, features, git, branch, tag, rev) A constructor for a crate dependency. See specifying dependencies in the Cargo book for more details. PARAMETERS Name Description Default Value package The explicit name of the package (used when attempting to alias a crate). None version The exact version of the crate. Cannot be used with git. None artifact Set to \"bin\" to pull in a binary crate as an artifact dependency. Requires a nightly Cargo. None lib If using artifact = \"bin\", additionally setting lib = True declares a dependency on both the package's library and binary, as opposed to just the binary. None default_features Maps to the default-features flag. True features A list of features to use for the crate [] git The Git url to use for the crate. Cannot be used with version. None branch The git branch of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. Specifying rev is recommended for fully-reproducible builds. None tag The git tag of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. Specifying rev is recommended for fully-reproducible builds. None rev The git revision of the remote crate. Tied with the git param. Only one of branch, tag or rev may be specified. None RETURNS string: A json encoded string of all inputs","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate.spec","id":"123","title":"crate.spec"},"124":{"body":"crate.workspace_member(version, sha256) Define information for extra workspace members PARAMETERS Name Description Default Value version The semver of the crate to download. Must be an exact version. none sha256 The sha256 checksum of the .crate file. None RETURNS string: A json encoded string of all inputs","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate.workspace_member","id":"124","title":"crate.workspace_member"},"125":{"body":"crate_deps(deps, package_name) Finds the fully qualified label of the requested crates for the package where this macro is called. PARAMETERS Name Description Default Value deps The desired list of crate targets. none package_name The package name of the set of dependencies to look up. Defaults to native.package_name(). None RETURNS list: A list of labels to generated rust targets (str)","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate_deps","id":"125","title":"crate_deps"},"126":{"body":"crate_repositories() A macro for defining repositories for all generated crates. RETURNS A list of repos visible to the module through the module extension.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate_repositories","id":"126","title":"crate_repositories"},"127":{"body":"crate_universe_dependencies(rust_version, bootstrap, kwargs) Define dependencies of the cargo-bazel Rust target PARAMETERS Name Description Default Value rust_version The version of rust to use when generating dependencies. \"1.82.0\" bootstrap If true, a cargo_bootstrap_repository target will be generated. False kwargs Arguments to pass through to cargo_bazel_bootstrap. none RETURNS list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories defined by this macro.","breadcrumbs":"External Crates » crate_universe (WORKSPACE) » crate_universe_dependencies","id":"127","title":"crate_universe_dependencies"},"128":{"body":"render_config(build_file_template, crate_label_template, crate_repository_template, crates_module_template, default_alias_rule, default_package_name, generate_target_compatible_with, platforms_template, regen_command, vendor_mode, generate_rules_license_metadata) Various settings used to configure rendered outputs The template parameters each support a select number of format keys. A description of each key can be found below where the supported keys for each template can be found in the parameter docs key definition name The name of the crate. Eg tokio repository The rendered repository name for the crate. Directly relates to crate_repository_template. triple A platform triple. Eg x86_64-unknown-linux-gnu version The crate version. Eg 1.2.3 target The library or binary target of the crate file The basename of a file PARAMETERS Name Description Default Value build_file_template The base template to use for BUILD file names. The available format keys are [{name}, {version}`]. \"//:BUILD.{name}-{version}.bazel\" crate_label_template The base template to use for crate labels. The available format keys are [{repository}, {name}, {version}, {target}]. \"@{repository}__{name}-{version}//:{target}\" crate_repository_template The base template to use for Crate label repository names. The available format keys are [{repository}, {name}, {version}]. \"{repository}__{name}-{version}\" crates_module_template The pattern to use for the defs.bzl and BUILD.bazel file names used for the crates module. The available format keys are [{file}]. \"//:{file}\" default_alias_rule Alias rule to use when generating aliases for all crates. Acceptable values are 'alias', 'dbg'/'fastbuild'/'opt' (transitions each crate's compilation_mode) or a string representing a rule in the form '