Skip to main content

source_hash

Function source_hash 

Source
pub fn source_hash(source: &str) -> String
Expand description

A stable hash of a source text, used to detect a file that changed between the analysis and a fix. This is not a cryptographic hash; it only needs to change when the bytes change, and to stay the same across processes.