Skip to main content

source_digest

Function source_digest 

Source
pub fn source_digest(text: &str) -> [u8; 32]
Expand description

SHA-256 of the definition text a chunk was compiled from.

Both writers — the interactive loader and --prewarm-autoloads — hash the string they are about to hand the compiler, so an entry is only reused for byte-identical input. That is the whole guarantee: no stat, no path, no assumption about where the bytes came from.