Skip to main content

hash_file

Function hash_file 

Source
pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>
Expand description

Hash a file by path. Uses mmap for large files (zero-copy, no read() syscalls), single-read + single-shot hash for small files, and streaming read as fallback.