compute_content_hash

Function compute_content_hash 

Source
pub fn compute_content_hash(
    src_dir: &Path,
    i18n_toml_path: Option<&Path>,
) -> String
Expand description

Compute blake3 hash of all .rs files in a source directory, plus the i18n.toml file.

Used for staleness detection - saving a file without modifications won’t change the hash, avoiding unnecessary rebuilds.

The i18n_toml_path parameter includes the i18n.toml configuration file in the hash, so changes to settings like fluent_feature trigger rebuilds.