setsum 0.5.0

Setsum provides an order-agnostic checksum.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Compute the inverse setsum for every hash provided on the command line.

use setsum::Setsum;

fn main() {
    for argument in std::env::args().skip(1) {
        if let Some(setsum) = Setsum::from_hexdigest(&argument) {
            println!("{}", (Setsum::default() - setsum).hexdigest());
        } else {
            eprintln!("don't know how to parse {argument} as setsum");
            std::process::exit(1);
        }
    }
}