2 unstable releases

0.5.0 Jul 9, 2024
0.4.0 Jul 9, 2024

#1245 in Hardware support

Download history 36/week @ 2024-07-22 9/week @ 2024-07-29 8/week @ 2024-08-05 4/week @ 2024-08-19 4/week @ 2024-08-26 18/week @ 2024-09-02 4/week @ 2024-09-09 19/week @ 2024-09-16 42/week @ 2024-09-23 18/week @ 2024-09-30 10/week @ 2024-10-07 43/week @ 2024-10-14 24/week @ 2024-10-21 28/week @ 2024-10-28 28/week @ 2024-11-04

124 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