4 releases (breaking)

0.7.0 May 1, 2025
0.6.0 Apr 30, 2025
0.5.0 Jul 9, 2024
0.4.0 Jul 9, 2024

#2523 in Hardware support

Download history 52/week @ 2025-12-11 10/week @ 2025-12-18 8/week @ 2026-01-01 2/week @ 2026-01-08 34/week @ 2026-01-15 9/week @ 2026-01-22 28/week @ 2026-01-29 7/week @ 2026-02-05 2/week @ 2026-02-12 10/week @ 2026-02-26 51/week @ 2026-03-19

61 downloads per month

MIT license

7MB
76K SLoC

C++ 52K SLoC C 18K SLoC // 0.2% comments Rust 5.5K SLoC // 0.0% comments Python 604 SLoC // 0.0% comments Shell 469 SLoC // 0.1% comments Bazel 454 SLoC // 0.0% comments

cpuinfo-rs

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.7.0"
use cpuinfo_rs::CpuInfo;

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

Dependencies