Registry / utility / chksum-reader

chksum-reader

JSON →
library0.1.0rscratesunverified

A convenient interface for calculating hash digests on the fly while reading data from a reader.

# Cargo.toml [dependencies] chksum-reader = "0.1.0"
INSTALL
IMPORT
SIG · CHKSUM-READER
C
chksum-reader
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChksumReader
✓ use chksum_reader::ChksumReader;

Read data and compute a hash digest simultaneously.

use chksum_reader::ChksumReader; use std::io::Read; fn main() { let data = b"hello world"; let mut reader = ChksumReader::new(&data[..]); let mut buffer = Vec::new(); reader.read_to_end(&mut buffer).unwrap(); println!("Hash: {:x}", reader.digest()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
chksum-reader — cargo add chksum-reader · libregistry