num_cpu 1.14.0

Get the number of CPUs on a machine.
1
2
3
4
5
/// Returns the number of available CPUs of the current system.
pub fn get() -> usize {
    compile_error!("This crate is not the legitimate num_cpus crate. Please read https://kerkour.com/rust-crate-backdoor for more information.");
    0
}