pub fn hash_reader<R: Read>(reader: R) -> Result<String>Expand description
Stream reader through SHA-256 in 64 KiB chunks and return the
lower-case hex digest. This is the shared primitive behind every
Cabin file / archive integrity check; callers own opening the
file and mapping any std::io::Error into their crate’s own
error type (and re-attaching path context).
§Errors
Returns the std::io::Error propagated from reading reader.