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//! - [`input`] — Keyboard and pointing-device detection.
23//! - [`disk`] — Physical disk model, size, and type detection.
24//! - [`memory`] — Physical memory (RAM) slot detection.
25//! - [`motherboard`] — Motherboard / system model detection.
26//! - [`network`] — Network interface detection, IP resolution, and Wi-Fi.
27//! - [`packages`] — Installed package count detection.
28//! - [`shell`] — Shell detection and version querying.
29//! - [`terminal`] — Terminal emulator detection and font configuration reading.
30//! - [`theme`] — UI theme, icon, cursor, and font detection.
31//! - [`weather`] — Weather information via wttr.in.
32//! - [`wm`] — Window manager detection.
33//! - [`fetch`] — Full system information gathering (`SystemInfo`, `CollectOptions`).
34
35pub mod audio;
36pub mod battery;
37pub mod bios;
38pub mod bluetooth;
39pub mod btrfs;
40pub mod camera;
41pub mod disk;
42pub mod display;
43pub mod fetch;
44pub mod gamepad;
45pub mod gpu;
46pub mod input;
47pub mod memory;
48pub mod motherboard;
49pub mod network;
50pub mod packages;
51pub mod shell;
52pub mod terminal;
53pub mod theme;
54pub mod weather;
55pub mod wm;
56pub mod zfs;
57
58#[cfg(target_os = "windows")]
59pub(crate) mod win_reg;
60#[cfg(target_os = "windows")]
61pub(crate) mod win_setupapi;
62#[cfg(target_os = "windows")]
63pub(crate) mod win_users;
64
65#[cfg(target_os = "macos")]
66pub(crate) mod macos_ffi;
67
68pub use fetch::{CollectOptions, SystemInfo};