1
0
Fork
You've already forked libcpuname
0
Rust library for identification of CPUs
  • Rust 100%
Campbell Jones e1e342ca8a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix(x86): Specify Nova Lake and Diamond Rapids suffixes
2025年10月02日 18:18:18 -04:00
LICENSES feat: Initial commit 2025年06月26日 12:31:19 -04:00
src fix(x86): Specify Nova Lake and Diamond Rapids suffixes 2025年10月02日 18:18:18 -04:00
.editorconfig feat: Initial commit 2025年06月26日 12:31:19 -04:00
.gitignore chore: Add .zed to gitignore 2025年10月02日 18:11:35 -04:00
.woodpecker.yml ci: Add cargo test step 2025年07月10日 13:46:16 -04:00
Cargo.lock chore: Bump version to 0.1.3 2025年08月23日 14:11:45 -04:00
Cargo.toml chore: Bump version to 0.1.3 2025年08月23日 14:11:45 -04:00
CHANGELOG.md chore: Update changelog for v0.1.3 2025年08月23日 14:16:12 -04:00
cliff.toml chore: Improve git-cliff configuration 2025年07月11日 23:29:31 -04:00
README.md docs(readme): Add crates.io and docs.rs badges 2025年07月09日 23:26:28 -04:00
REUSE.toml feat: Initial commit 2025年06月26日 12:31:19 -04:00

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.