pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>Expand description
Hash a file by path. Single open + fstat to minimize syscalls. Uses read() for small files, mmap for large files.
pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>Hash a file by path. Single open + fstat to minimize syscalls. Uses read() for small files, mmap for large files.