chksum 0.4.0

An implementation of hash functions with a straightforward interface for computing digests of bytes, files, directories, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{io, result};

/// A common error type for the current crate.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("cannot process terminal input")]
    IsTerminal,
    #[error(transparent)]
    Io(#[from] io::Error),
}

/// [`Result`](std::result::Result) type alias with an error type of [`Error`].
pub type Result<T> = result::Result<T, Error>;