1extern crate num_cpus; 2 3fn main() { 4 println!("Logical CPUs: {}", num_cpus::get()); 5 println!("Physical CPUs: {}", num_cpus::get_physical()); 6}