Function cargo::core::compiler::build_runner::compilation_files::metadata_of
source · fn metadata_of<'a>(
unit: &Unit,
build_runner: &BuildRunner<'_, '_>,
metas: &'a mut HashMap<Unit, MetaInfo>,
) -> &'a MetaInfo
Expand description
Gets the metadata hash for the given Unit
.
When a metadata hash doesn’t exist for the given unit,
this calls itself recursively to compute metadata hashes of all its dependencies.
See compute_metadata
for how a single metadata hash is computed.