1 unstable release
new 0.1.1 | Mar 7, 2025 |
---|
#789 in Filesystem
100 downloads per month
9KB
116 lines
Dirhash_fast
Dirhash_fast
is a high-performance Rust tool designed to quickly compute cryptographic hashes (Blake3) of entire directory trees.
It supports parallel processing to scale effectively to large datasets, and works cross-platform (Linux, macOS, Windows).
It is much faster than the crate dirhash, and meant to be used more easily than merkle_hash.
Dirhash_fast can be used both as a standalone command-line application and as a library in Rust projects.
Usage (binary):
Run dirhash_fast /path/to/directory
to print the hash of the specified directory.
Usage (library):
Include dirhash_fast = "0"
in your project's Cargo.toml
under [dependencies]
.
Example usage in Rust:
use dirhash_fast::hash_directory;
fn main() {
let hash = hash_directory("/path/to/directory".as_ref());
println!("Directory hash: {}", hash);
}
.
Installation:
From source: cargo install --path .
, or from crates.io: cargo install dirhash_fast
.
License: Dirhash_fast is dual-licensed under either Apache-2.0 or MIT, at your option.
© 2025 Arno Waschk.
🚀 Fast · Secure · Cross-platform
Dependencies
~5–13MB
~202K SLoC