filehash-rs

Crates.iofilehash-rs
lib.rsfilehash-rs
version1.1.0
sourcesrc
created_at2020-12-29 10:05:30.236508
updated_at2020-12-29 11:40:06.612934
descriptionA small, fast library for hashing files written in Rust.
homepagehttps://github.com/doddydigitaldesign/filehash-rs
repositoryhttps://github.com/doddydigitaldesign/filehash-rs
max_upload_size
id328693
size11,040
Daniel Sonne Lehnberg (doddydigitaldesign)

documentation

https://docs.rs/filehash-rs

README

filehash-rs

A small (3kb), fast library for hashing files written in Rust.

Usage

See the examples directory for some example usages.

Notes

  • The resulting hash may vary depending on the environment

Dependencies

The crate has some dependencies on the Rust standard library and might not be suited for applications where no-std is important.

use std::{
    collections::hash_map::DefaultHasher,
    fs::File,
    hash::{Hash, Hasher},
    io::{Error, Read},
    path::Path,
};
Commit count: 15

cargo fmt