Skip to main content

compute_cache_key

Function compute_cache_key 

Source
pub fn compute_cache_key(
    source_path: &Path,
    source_files: &[PathBuf],
    embedded_modules: &[String],
) -> Result<String, String>
Expand description

Compute cache key from source + all transitive includes

Algorithm:

  1. Hash main source file content
  2. Sort and hash all filesystem includes
  3. Sort and hash all embedded stdlib modules
  4. Combine into final SHA-256 hex string