# chksum-reader
[](https://crates.io/crates/chksum-reader)
[](https://github.com/chksum-rs/reader/actions/workflows/rust.yml)
[](https://docs.rs/chksum-reader/)
[](https://github.com/chksum-rs/reader/blob/master/Cargo.toml)
[](https://deps.rs/crate/chksum-reader/0.1.0)
[](https://github.com/rust-secure-code/safety-dance)
[](https://github.com/chksum-rs/reader/blob/master/LICENSE)
A convenient interface for calculating hash digests on the fly while reading data from a reader.
## Setup
To use this crate, add the following entry to your `Cargo.toml` file in the `dependencies` section:
```toml
[dependencies]
chksum-reader = "0.1.0"
```
Alternatively, you can use the [`cargo add`](https://doc.rust-lang.org/cargo/commands/cargo-add.html) subcommand:
```sh
cargo add chksum-reader
```
## Features
### Asynchronous Runtime
* `async-runtime-tokio`: Enables async interface for Tokio runtime.
By default, neither of these features is enabled.
## Examples
For implementation-specific examples, refer to the documentation of the following crates:
* [`chksum-md5`](https://github.com/chksum-rs/md5)
* [`chksum-sha1`](https://github.com/chksum-rs/sha1)
* [`chksum-sha2`](https://github.com/chksum-rs/sha2)
* [`chksum-sha2-224`](http://github.com/chksum-rs/sha2-224)
* [`chksum-sha2-256`](http://github.com/chksum-rs/sha2-256)
* [`chksum-sha2-384`](http://github.com/chksum-rs/sha2-384)
* [`chksum-sha2-512`](http://github.com/chksum-rs/sha2-512)
## License
This crate is licensed under the MIT License.