file-hashing
This crate will help you easily get hash from files or folders
Example
let path = from;
let mut hash = new;
let result = get_hash_file.unwrap;
assert_eq!; // Blake2s256 len == 64
P.S. If the examples from the documentation do not work, then you need to look at the unit tests
Motivation
Each time we write our own function to get the hash from a file or folder. We repeat ourselves and violate the DRY principle. With this crate you can save a couple of hours
License: MIT