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.
pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>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.