rcpufetch 0.0.5

[ALPHA] A rusty crossplatform, but simple CLI binutil for reading CPU information.
#![allow(dead_code)] // exactly one of these tables is used per target_arch build
// Ported from cpufetch's src/riscv/uarch.c
// (device-tree "uarch"/compatible string -> name, vendor)
pub static RISCV_UARCH_STR: &[(&str, &str, &str)] = &[
    ("sifive,bullet0", "U74", "SiFive"),
    ("sifive,u54", "U54", "SiFive"),
    ("sifive,u74", "U74", "SiFive"),
    ("sifive,u74-mc", "U74", "SiFive"),
    ("thead,c906", "T-Head C906", "T-Head"),
    ("thead,c910", "T-Head C910", "T-Head"),
];

// marchid -> (name, vendor)
pub static RISCV_UARCH_MARCHID: &[(u64, &str, &str)] = &[(0x8000000058000001, "X60", "SpacemiT")];

// Ported from cpufetch's src/riscv/socs.h + soc.c match tables
// (device-tree compatible substring -> marketing name)
pub static RISCV_SOCS: &[(&str, &str)] = &[
    ("sifive,fu740", "SiFive FU740"),
    ("starfive,jh7110", "StarFive JH7110"),
    ("allwinner,sun20i-d1", "Allwinner D1H"),
    ("sipeed,licheepi4a", "Sipeed Lichee Pi 4A"),
    ("spacemit,k1", "SpacemiT K1"),
];