Processor

Check the number of logical cpu cores

num_cpus num_cpus-crates.io num_cpus-github num_cpus-lib.rs cat-hardware-support

Shows the number of logical CPU cores in the current machine using num_cpus::get⮳.

fn main() {
    println!("Number of logical cores is {}", num_cpus::get());
}