rigtop_core/lib.rs
1//! Data collection core shared by the rigtop TUI and GUI.
2//!
3//! - [`snapshot`]: the serializable measurement types exchanged between data
4//! sources and front-ends (also the wire format for remote monitoring).
5//! - [`source`]: the [`DataSource`] trait and the [`LocalSource`] implementation.
6//! - [`config`]: user configuration (sensor labels, SMART directory).
7//! - [`system`], [`gpu`], [`smart`], `linux`: the individual collectors.
8//! - [`worker`], [`view`], [`format`]: front-end helpers shared by the TUI
9//! and the GUI (background polling thread, process table logic, units).
10
11pub mod config;
12pub mod format;
13pub mod gpu;
14#[cfg(target_os = "linux")]
15pub mod linux;
16pub mod smart;
17pub mod snapshot;
18pub mod source;
19pub mod system;
20pub mod view;
21#[cfg(windows)]
22mod windows;
23pub mod worker;
24
25pub use config::Config;
26pub use snapshot::Snapshot;
27pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};