2 unstable releases

0.5.0 Jul 9, 2024
0.4.0 Jul 9, 2024

#409 in Hardware support

MIT license

7MB
71K SLoC

C++ 51K SLoC C 18K SLoC // 0.2% comments Rust 1.5K SLoC // 0.0% comments Python 604 SLoC // 0.0% comments Bazel 454 SLoC // 0.0% comments Shell 425 SLoC // 0.1% comments

cpuinfo-rs title

Actions Status Latest version Documentation MSRV Contributor Covenant

Banner

Thin and slightly opinionated wrapper around cpuinfo.

Usage

Add this to your Cargo.toml:

[dependencies]
cpuinfo-rs = "0.5.0"
use cpuinfo_rs::CpuInfo;

let info = CpuInfo::new();
dbg!(info.processors());

Dependencies