retch_sysinfo/lib.rs
1// SPDX-FileCopyrightText: 2026 Ken Tobias
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4//! # retch-sysinfo
5//!
6//! System information gathering library for retch.
7//!
8//! Provides cross-platform hardware and OS detection, GPU identification,
9//! battery status, and environment probing. Extracted from the `retch-cli`
10//! binary to allow reuse as a standalone library.
11//!
12//! ## Modules
13//!
14//! - [`audio`] — Audio server and device detection.
15//! - [`battery`] — Cross-platform battery status detection.
16//! - [`bios`] — BIOS / firmware version detection.
17//! - [`bluetooth`] — Bluetooth controller state and connected device detection.
18//! - [`camera`] — Camera and webcam detection.
19//! - [`display`] — Display detection and EDID parsing.
20//! - [`gamepad`] — Gamepad and joystick controller detection.
21//! - [`gpu`] — GPU detection and PCI ID lookup.
22//! - [`disk`] — Physical disk model, size, and type detection.
23//! - [`memory`] — Physical memory (RAM) slot detection.
24//! - [`motherboard`] — Motherboard / system model detection.
25//! - [`network`] — Network interface detection, IP resolution, and Wi-Fi.
26//! - [`packages`] — Installed package count detection.
27//! - [`shell`] — Shell detection and version querying.
28//! - [`terminal`] — Terminal emulator detection and font configuration reading.
29//! - [`theme`] — UI theme, icon, cursor, and font detection.
30//! - [`weather`] — Weather information via wttr.in.
31//! - [`wm`] — Window manager detection.
32//! - [`fetch`] — Full system information gathering (`SystemInfo`, `CollectOptions`).
33
34pub mod audio;
35pub mod battery;
36pub mod bios;
37pub mod bluetooth;
38pub mod btrfs;
39pub mod camera;
40pub mod disk;
41pub mod display;
42pub mod fetch;
43pub mod gamepad;
44pub mod gpu;
45pub mod memory;
46pub mod motherboard;
47pub mod network;
48pub mod packages;
49pub mod shell;
50pub mod terminal;
51pub mod theme;
52pub mod weather;
53pub mod wm;
54pub mod zfs;
55
56#[cfg(target_os = "windows")]
57pub(crate) mod win_reg;
58#[cfg(target_os = "windows")]
59pub(crate) mod win_setupapi;
60
61#[cfg(target_os = "macos")]
62pub(crate) mod macos_ffi;
63
64pub use fetch::{CollectOptions, SystemInfo};