libcpuname 0.1.3

Identify CPU vendors, chips, and cores across multiple architectures
Documentation
  • Coverage
  • 100%
    97 out of 97 items documented12 out of 23 items with examples
  • Size
  • Source code size: 209.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 11.33 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • serebit

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.