picca/src/bin/shake256sum.rs

10 lines
289 B
Rust
Raw Normal View History

2025-08-14 22:08:40 -06:00
use picca::core::hashers::hash_shake256;
#[quit::main]
fn main() {
let args = picca::Args::parse();
let algorithm = env!("CARGO_BIN_NAME").replace("sum", "");
let hasher = hash_shake256 as fn(Option<File>, Option<String>) -> String;
picca::main!(args, algorithm, true, hasher);
}