Skip to main content

normalized_source_hash

Function normalized_source_hash 

Source
pub fn normalized_source_hash(bytes: &[u8]) -> u64
Expand description

Computes a 64-bit FNV-1a hash over source bytes after stripping UTF-8 BOM and normalizing CRLF to LF, exactly matching rustc’s internal SourceFile.src normalization.