Crates.io | fhc |
lib.rs | fhc |
version | 0.10.1 |
source | src |
created_at | 2020-02-04 03:03:20.559113 |
updated_at | 2024-11-05 08:12:31.492423 |
description | File hash checker (BLAKE3, SHA256, SHA512) |
homepage | |
repository | https://github.com/qtfkwk/fhc |
max_upload_size | |
id | 204668 |
size | 262,247 |
File hash checker represents a minimal solution meeting the following requirements:
rayon
parallel iterator)criterion
blake3
, sha2
, anyhow
, clap
, rayon
sha256sum
, 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.10.1
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 -c
sequential
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-iter
Hash::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 dependencies