1 2 3 4 5 6 7 8 9 10 11 12
#![feature(async_await)] use heim_common::prelude::*; use heim_cpu as cpu; #[runtime::main] async fn main() -> Result<()> { dbg!(cpu::logical_count().await?); dbg!(cpu::physical_count().await?); Ok(()) }