rcpufetch 0.0.5

[ALPHA] A rusty crossplatform, but simple CLI binutil for reading CPU information.
pub mod tables;

#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
pub mod arm;
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
pub mod ppc;
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
pub mod riscv;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86;

/// Architecture-derived information: what CPUID/MIDR/PVR/marchid tell us,
/// independent of which OS gathered the raw register/string values.
#[derive(Debug, Default, Clone)]
pub struct ArchInfo {
    pub vendor: Option<String>,
    pub uarch: Option<String>,
    pub soc: Option<String>,
    pub process_nm: Option<u32>,
    /// ISA feature flags relevant to this arch (SSE/AVX/.../NEON/SVE/.../Altivec/RISC-V extensions)
    pub features: Vec<String>,
}