Skip to main content

retch_sysinfo/
lib.rs

1// SPDX-License-Identifier: GPL-3.0-or-later
2// Copyright (C) 2026 l1a
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//! - [`bluetooth`] — Bluetooth controller state and connected device detection.
17//! - [`display`] — Display detection and EDID parsing.
18//! - [`gpu`] — GPU detection and PCI ID lookup.
19//! - [`network`] — Network interface detection, IP resolution, and Wi-Fi.
20//! - [`fetch`] — Full system information gathering (`SystemInfo`, `CollectOptions`).
21
22pub mod audio;
23pub mod battery;
24pub mod bluetooth;
25pub mod display;
26pub mod fetch;
27pub mod gpu;
28pub mod network;
29
30pub use fetch::{CollectOptions, SystemInfo};