scoped-threadpool-std 0.1.1

A simple scoped threadpool implementation and related tests including a password hasher
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub fn usage(argv: &[String]) {
    eprintln!("Usage: {} <# of threads>", argv[0]);
    std::process::exit(1);
}

pub fn check_prime(n: u64) {
    let mut k: u64 = n.wrapping_div(2);
    while k > 1 {
        if n.wrapping_rem(k) == 0 {
            return;
        }
        k = k.wrapping_sub(1)
    }
    println!("{n}");
}

pub mod dictionary_words;
use dictionary_words::*;