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