pub fn cpu_count() -> usizeExpand description
Get the number of available CPU cores.
Returns the number of logical CPU cores available on the system. Falls back to 1 if detection fails.
ยงExamples
use lamina_platform::detection::cpu_count;
let cores = cpu_count();
println!("System has {} CPU cores", cores);