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//! - [`battery`] — Cross-platform battery status detection.
15//! - [`gpu`] — GPU detection and PCI ID lookup.
16//! - [`fetch`] — Full system information gathering (`SystemInfo`, `CollectOptions`).
17
18pub mod battery;
19pub mod fetch;
20pub mod gpu;
21
22pub use fetch::{CollectOptions, SystemInfo};