Skip to main content

module_to_cached

Function module_to_cached 

Source
pub fn module_to_cached(
    module: &ModuleInfo,
    fingerprint: SourceFingerprint,
) -> CachedModule
Expand description

Convert a ModuleInfo to a CachedModule for storage.

The SourceFingerprint comes from std::fs::metadata() at parse time and enables fast cache validation on subsequent runs.