| Crates.io | fhc |
| lib.rs | fhc |
| version | 0.11.3 |
| created_at | 2020-02-04 03:03:20.559113+00 |
| updated_at | 2025-11-13 20:14:27.564438+00 |
| description | File hash checker (BLAKE3, SHA256, SHA512) |
| homepage | |
| repository | https://github.com/qtfkwk/fhc |
| max_upload_size | |
| id | 204668 |
| size | 264,915 |
File hash checker represents a minimal solution meeting the following requirements:
rayon
parallel iterator)criterionblake3, sha2, anyhow, clap, rayonsha256sum, b3sum.sha256, .sha512, .b3)$ fhc -h
File hash checker (BLAKE3, SHA256, SHA512)
Usage: fhc [OPTIONS] [FILES]...
Arguments:
[FILES]... File(s)
Options:
-a <ALGORITHM> Algorithm [default: blake3] [possible values: blake3,
sha256, sha512, blake3-sha256, blake3-sha512,
sha256-sha512, all]
-p, --process <PROCESS> Approach for processing multiple files [default:
rayon-par-iter] [possible values: rayon-par-iter,
sequential-for-loop, sequential-iter, threading,
messaging]
-h, --help Print help
-V, --version Print version
$ fhc -V
fhc 0.11.3
fhc against one or more files to calculate and print the SHA256 or
BLAKE3 hash for each file to stdout and save in adjacent hash files.fhc against one or more files with adjacent
hash files to re-calculate the hash for each file and report OK if the
hashes match and FAILED if the hashes do not match..sha256 files compatible w/ sha256sum -csequential process option to sequentialforloop; add sequentialiter and rayonpariter process options; move most of process option logic from CLI to library via process option functions and the process option run method; add criterion benchmarks; fix changelog; update dependencies
blake3 and -a option
-a blake3 and -p rayon-par-iterHash::Blake3Sha256 and Hash::All variants and enable running multiple hash algorithms while reading the file from disk just once; add cargo lock file; housekeeping; update dependenciesclap-cargo CLAP_STYLING; update dependencies