Expand description
See CompilationFiles
.
Structsยง
- Compilation
Files - Collection of information about the files emitted by the compiler, and the output directory structure.
- Metadata
Metadata
tracks severalUnitHash
s, includingMetadata::unit_id
,Metadata::c_metadata
, andMetadata::c_extra_filename
.- Output
File - Info about a single file emitted by the compiler.
- Unit
Hash - Uniquely identify a
Unit
under specific circumstances, seeMetadata
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.