Module compilation_files

Source
Expand description

Structsยง

CompilationFiles
Collection of information about the files emitted by the compiler, and the output directory structure.
Metadata
Metadata tracks several UnitHashs, including Metadata::unit_id, Metadata::c_metadata, and Metadata::c_extra_filename.
OutputFile
Info about a single file emitted by the compiler.
UnitHash
Uniquely identify a Unit under specific circumstances, see Metadata for more.

Constantsยง

METADATA_VERSION ๐Ÿ”’
This is a generic version number that can be changed to make backwards-incompatible changes to any file structures in the output directory. For example, the fingerprint files or the build-script output files.

Functionsยง

compute_metadata ๐Ÿ”’
Computes the metadata hash for the given Unit.
has_remap_path_prefix ๐Ÿ”’
HACK: Detect the potential presence of --remap-path-prefix
hash_rustc_version ๐Ÿ”’
Hash the version of rustc being used during the build process.
metadata_of ๐Ÿ”’
Gets the metadata hash for the given Unit.
use_extra_filename ๐Ÿ”’
Returns whether or not this unit should use a hash in the filename to make it unique.