Package hasher provides a Hasher trait.
hasher
pub trait Hasher { fn hash(&self, data: &[u8]) -> Vec<u8>; }
$ cargo test --all-features