2 unstable releases

0.5.0 Jul 9, 2024
0.4.0 Jul 9, 2024

#1355 in Hardware support

Download history 30/week @ 2024-10-26 30/week @ 2024-11-02 1/week @ 2024-11-09 42/week @ 2024-11-16 23/week @ 2024-11-23 102/week @ 2024-11-30 127/week @ 2024-12-07 95/week @ 2024-12-14 12/week @ 2024-12-21 25/week @ 2024-12-28 61/week @ 2025-01-04 39/week @ 2025-01-11 371/week @ 2025-01-18 648/week @ 2025-01-25 577/week @ 2025-02-01 755/week @ 2025-02-08

2,355 downloads per month

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