Providers

CrateInfo

A provider containing general Crate information.

FIELDS

NameDescription
aliasesDict[Label, String]: Renamed and aliased crates
compile_datadepset[File]: Compile data required by this crate.
compile_data_targetsdepset[Label]: Compile data targets required by this crate.
datadepset[File]: Compile data required by crates that use the current crate as a proc-macro.
depsdepset[DepVariantInfo]: This crate‘s (rust or cc) dependencies’ providers.
editionstr: The edition of this crate.
is_testbool: If the crate is being compiled in a test context
metadataFile: The output from rustc from producing the output file. It is optional.
namestr: The name of this crate.
outputFile: The output File that will be produced, depends on crate type.
ownerLabel: The label of the target that produced this CrateInfo
proc_macro_depsdepset[DepVariantInfo]: This crate‘s rust proc_macro dependencies’ providers.
rootFile: The source File entrypoint to this crate, eg. lib.rs
rustc_envDict[String, String]: Additional "key": "value" environment variables to set for rustc.
rustc_env_files[File]: Files containing additional environment variables to set for rustc.
rustc_outputFile: The output from rustc from producing the output file. It is optional.
rustc_rmeta_outputFile: The rmeta file produced for this crate. It is optional.
srcsdepset[File]: All source Files that are part of the crate.
std_dylibFile: libstd.so file
typestr: The type of this crate (see rustc --crate-type).
wrapped_crate_typestr, optional: The original crate type for targets generated using a previously defined crate (typically tests using the rust_test::crate attribute)

DepInfo

A provider containing information about a Crate's dependencies.

FIELDS

NameDescription
dep_envFile: File with environment variables direct dependencies build scripts rely upon.
direct_cratesdepset[AliasableDepInfo]
link_search_path_filesdepset[File]: All transitive files containing search paths to pass to the linker
transitive_build_infosdepset[BuildInfo]
transitive_crate_outputsdepset[File]: All transitive crate outputs.
transitive_cratesdepset[CrateInfo]
transitive_datadepset[File]: Data of all transitive non-macro dependencies.
transitive_metadata_outputsdepset[File]: All transitive metadata dependencies (.rmeta, for crates that provide them) and all transitive object dependencies (.rlib) for crates that don't provide metadata.
transitive_noncratesdepset[LinkerInput]: All transitive dependencies that aren't crates.
transitive_proc_macro_datadepset[File]: Data of all transitive proc-macro dependencies, and non-macro dependencies of those macros.

StdLibInfo

A collection of files either found within the rust-stdlib artifact or generated based on existing files.

FIELDS

NameDescription
alloc_filesList[File]: .a files related to the alloc module.
between_alloc_and_core_filesList[File]: .a files related to the compiler_builtins module.
between_core_and_std_filesList[File]: .a files related to all modules except adler, alloc, compiler_builtins, core, and std.
core_filesList[File]: .a files related to the core and adler modules
dot_a_filesDepset[File]: Generated .a files
memchr_filesDepset[File]: .a files associated with the memchr module.
panic_filesDepset[File]: .a files associated with panic_unwind and panic_abort.
self_contained_filesList[File]: All .o files from the self-contained directory.
srcsList[Target]: All targets from the original srcs attribute.
std_dylibFile: libstd.so file
std_filesDepset[File]: .a files associated with the std module.
std_rlibsList[File]: All .rlib files
test_filesDepset[File]: .a files associated with the test module.