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 I/O pipelining for large files on Linux, mmap with HUGEPAGE hints as fallback, single-read for small files, and streaming read for non-regular files.