Given that std::thread::available_parallelism was stabilized on Rust 1.59 and the MSRV of this crate is 1.63, we can safely use this new standard library function, whose behavior is equivalent to num_cpus::get, but better documented and likely to receive more maintenance and care.
Given that
std::thread::available_parallelism
was stabilized on Rust 1.59 and the MSRV of this crate is 1.63, we can safely use this new standard library function, whose behavior is equivalent tonum_cpus::get
, but better documented and likely to receive more maintenance and care.