Function cargo::core::compiler::context::compilation_files::metadata_of
source · fn metadata_of<'a>(
unit: &Unit,
cx: &Context<'_, '_>,
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.