Skip to main content

Crate retch_sysinfo

Crate retch_sysinfo 

Source
Expand description

§retch-sysinfo

System information gathering library for retch.

Provides cross-platform hardware and OS detection, GPU identification, battery status, and environment probing. Extracted from the retch-cli binary to allow reuse as a standalone library.

§Modules

  • audio — Audio server and device detection.
  • battery — Cross-platform battery status detection.
  • bios — BIOS / firmware version detection.
  • bluetooth — Bluetooth controller state and connected device detection.
  • camera — Camera and webcam detection.
  • display — Display detection and EDID parsing.
  • gamepad — Gamepad and joystick controller detection.
  • gpu — GPU detection and PCI ID lookup.
  • disk — Physical disk model, size, and type detection.
  • memory — Physical memory (RAM) slot detection.
  • motherboard — Motherboard / system model detection.
  • network — Network interface detection, IP resolution, and Wi-Fi.
  • packages — Installed package count detection.
  • shell — Shell detection and version querying.
  • terminal — Terminal emulator detection and font configuration reading.
  • theme — UI theme, icon, cursor, and font detection.
  • weather — Weather information via wttr.in.
  • wm — Window manager detection.
  • fetch — Full system information gathering (SystemInfo, CollectOptions).

Re-exports§

pub use fetch::CollectOptions;
pub use fetch::SystemInfo;

Modules§

audio
Audio server and device detection.
battery
bios
BIOS / firmware version detection.
bluetooth
Bluetooth controller state and connected device detection.
btrfs
Btrfs filesystem detection — label, subvolume, and space allocation for mounted btrfs volumes.
camera
Camera and webcam detection.
disk
Physical disk detection (model, size, type) and logical disk space reporting.
display
Display detection and EDID parsing.
fetch
System information gathering.
gamepad
Gamepad and joystick controller detection.
gpu
GPU detection and identification.
memory
Physical memory (RAM) slot detection — type, speed, and capacity.
motherboard
Motherboard / system model detection.
network
Network interface detection, IP resolution, Wi-Fi, and related helpers.
packages
Installed package count detection.
shell
Shell detection and version querying.
terminal
Terminal emulator detection and font configuration reading.
theme
UI theme, icon, cursor, and font detection.
weather
Weather information via Open-Meteo (forecast) and Open-Meteo geocoding / ipinfo.io.
wm
Window manager detection.
zfs
ZFS storage pool detection via zpool list.