libcpuname

Crates.iolibcpuname
lib.rslibcpuname
version0.1.3
created_at2025-07-10 04:04:34.784373+00
updated_at2025-08-23 18:13:20.389098+00
descriptionIdentify CPU vendors, chips, and cores across multiple architectures
homepage
repositoryhttps://codeberg.org/serebit/libcpuname
max_upload_size
id1745839
size209,563
Campbell Jones (serebit)

documentation

https://docs.rs/libcpuname

README

libcpuname

REUSE status Pipeline status docs.rs Crates.io Version Crates.io MSRV

libcpuname is a Rust library that provides lookup tables for the names of CPU manufacturers and designers, CPU chip designs, and CPU core microarchitectures. The following instruction set architectures are supported:

  • x86 (both 32-bit and 64-bit CPUs)
  • ARM
  • RISC-V

Quickstart

Add libcpuname to your project as a dependency:

cargo add libcpuname

Features

The architecture corresponding to the host's target triple is enabled by default via the native feature. Other architectures can be enabled individually or wholesale. The following features are available:

  • std (enabled by default): Link against the std crate. This enables impls of std::error::Error
  • native (enabled by default): Exposes the module that matches the host's target triple
  • arm: Exposes the arm module
  • riscv: Exposes the riscv module
  • x86: Exposes the x86 module

License

libcpuname is dual-licensed under the Apache-2.0 and MIT open-source licenses.

Commit count: 0

cargo fmt