Crates.io | lscpu |
lib.rs | lscpu |
version | |
source | src |
created_at | 2025-03-09 14:55:17.262814+00 |
updated_at | 2025-03-29 15:35:12.126805+00 |
description | Implementation of lscpu in rust |
homepage | |
repository | https://github.com/mateolafalce/lscpu |
max_upload_size | |
id | 1585558 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Implementation of lscpu in rust
cargo run --example std
This code can be runned also in a no-std
environment.
pub struct Cpu {
pub architecture: &'static str,
pub cpu_op_modes: &'static str,
pub address_sizes: String,
pub byte_order: &'static str,
pub cpu_count: u32,
pub on_line_cpu: u32,
pub vendor_id: String,
pub model_name: String,
pub cpu_family: u32,
pub cpu_model: u32,
pub is_hybrid: &'static str,
pub threads_per_core: u32,
pub cores_per_socket: u32,
pub sockets: u32,
pub stepping: u32,
pub boost_enabled: &'static str,
}