heim-cpu 0.0.11

Cross-platform CPU information
Documentation
1
2
3
4
5
6
7
8
9
10
use heim_common::prelude::*;
use heim_cpu as cpu;

#[heim_derive::main]
async fn main() -> Result<()> {
    dbg!(cpu::logical_count().await?);
    dbg!(cpu::physical_count().await?);

    Ok(())
}