Crates.io | libcpuname |
lib.rs | libcpuname |
version | 0.1.3 |
created_at | 2025-07-10 04:04:34.784373+00 |
updated_at | 2025-08-23 18:13:20.389098+00 |
description | Identify CPU vendors, chips, and cores across multiple architectures |
homepage | |
repository | https://codeberg.org/serebit/libcpuname |
max_upload_size | |
id | 1745839 |
size | 209,563 |
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:
Add libcpuname
to your project as a dependency:
cargo add libcpuname
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 triplearm
: Exposes the arm
moduleriscv
: Exposes the riscv
modulex86
: Exposes the x86
modulelibcpuname is dual-licensed under the Apache-2.0
and MIT
open-source licenses.