dmidecode-rs 0.2.2

dmidecode is a tool to report SMBIOS table content in human readable format.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Opt;
use smbioslib::*;
use std::fmt::Write;
use std::io::Error;

mod dmiopt;

pub fn table_load(_opt: &Opt) -> Result<(SMBiosData, String), Error> {
    let mut output = String::new();

    writeln!(&mut output, "Getting SMBIOS data from IOKit.").unwrap();

    let smbios_table = table_load_from_device()?;

    Ok((smbios_table, output))
}