rimage 0.12.3

Optimize images natively with best-in-class codecs
Documentation
1
2
3
4
5
6
7
use std::{num::NonZeroUsize, thread};

pub fn num_threads() -> usize {
    thread::available_parallelism()
        .unwrap_or(NonZeroUsize::new(4).unwrap())
        .get()
}