Registry / utility / heim
library0.0.11rscratesunverified

A cross-platform framework for retrieving system information such as CPU, memory, and disks.

# Cargo.toml [dependencies] heim = "0.0.11"
INSTALL
IMPORT
SIG · HEIM
H
heim
utilityrustv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cpu
use heim::cpu::Cpu;

Fetches CPU information asynchronously using heim.

use heim::cpu::Cpu; #[tokio::main] async fn main() -> Result<(), heim::Error> { let cpu = Cpu::get().await?; println!("CPU: {} cores", cpu.logical_count()); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like tokio or async-std
fix
Add tokio as a dependency and use #[tokio::main] or similar
affects: >=0.0.1
Upgrade
Version history
0.0.11latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
heim — cargo add heim · libregistry