#hashing #file #3kb

bin+lib filehash-rs

A small, fast library for hashing files written in Rust

2 stable releases

1.1.0 Dec 29, 2020
1.0.0 Dec 29, 2020

#1058 in Filesystem


Used in video_amogusifier

MIT license

7KB
86 lines

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,
};

Dependencies

~430KB