Expand description
ferrix-lib is a library for obtaining information about the hardware and software of a PC running Linux OS.
§Examples
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()?;Get information about DMI tables (note: root permissions is needed!):
use ferrix_lib::dmi::DMITable;
let dmi = DMITable::new().unwrap();
dbg!(dmi);Modules§
- battery
- Get information about notebook’s battery
- cpu
- Get information about installed CPUs
- cpu_
freq - Get information about CPU frequency
- desktop
- Get information about desktop environment
- dmi
- DMI table parser. Uses
smbios-libto data provider - drm
- Get information about video
- firmware
- Get firmware settings (only for modern systems with UEFI)
- init
- Get information about
systemdservices - net
- Network statistics
- parts
- Get information about mounted partitions
- ram
- Get information about RAM
- resources
- Resources and addresses
- sensors
hwmonsensors- soft
- Installed software list
- sys
- Get information about installed system
- traits
- Custom trait objects
- utils
- Utilities and helpers
- vmstat
- Get virtual memory statistics
- vulnerabilities
- Get information about CPU vulnerabilities