Crate ferrix_lib

Crate ferrix_lib 

Source
Expand description

ferrix-lib is a library for obtaining information about the hardware and software of a PC running Linux OS.

§Examples

Get all information about hardware and software (NOTE: needed root permissions!):

use ferrix_lib::Ferrix;

let data = Ferrix::new()?; // get all data

let json_str = data.to_json()?; // get machine-readable JSON from this data
let pjson_str = data.to_json_pretty()?; // get human-readable JSON
let xml_str = data.to_xml()?; // get XML

Get information about CPU:

use ferrix_lib::cpu::Processors;
let proc = Processors::new()?;

let json_str = data.to_json()?;
let pjson_str = data.to_json_pretty()?;

Modules§

cpu
Get information about installed CPUs
dmi
DMI table parser. Uses smbios-lib to data provider
drm
Get information about video
init
Get information about systemd services
ram
Get information about RAM
sys
Get information about installed system
traits
Custom trait objects
utils
Utilities and helpers

Structs§

Ferrix