Crates.io | fhc |
lib.rs | fhc |
version | 0.6.0 |
source | src |
created_at | 2020-02-04 03:03:20.559113 |
updated_at | 2024-01-25 16:19:00.9964 |
description | File hash checker (SHA256, BLAKE3) |
homepage | |
repository | https://github.com/qtfkwk/fhc |
max_upload_size | |
id | 204668 |
size | 247,549 |
File hash checker represents a minimal solution meeting the following requirements:
rayon
parallel
iterator)criterion
blake3
, sha2
, anyhow
, clap
, rayon
sha256sum
, b3sum
.sha256
, .b3
)$ fhc -h
File hash checker (SHA256, BLAKE3)
Usage: fhc [OPTIONS] [FILES]...
Arguments:
[FILES]... File(s)
Options:
-a <ALGORITHM> Algorithm [default: blake3] [possible values: blake3,
sha256]
-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
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