pub fn fingerprint_file(path: &Path) -> Result<Fingerprint, Error>Expand description
Fingerprints every raw byte of a regular file using BLAKE3.
No whitespace, newline, or encoding normalization is performed. Empty
files and arbitrary non-UTF-8 bytes are accepted. Returns the same digest
as inspect_file, whose example shows how to access the digest bytes.
Each call reopens the path. Keep the file unchanged throughout inspection and any subsequent comparison; restart after editing or replacing it. See the file stability requirements.
ยงErrors
Returns Error::Io if metadata lookup, opening, or reading fails,
Error::NotRegularFile for a non-regular input, or
Error::FileTooLarge if a byte or line count cannot fit in u64.