cfg_select! {
feature = "system" => {
pub mod cpu;
pub mod motherboard;
pub mod process;
pub mod product;
pub mod system;
pub(crate) use self::cpu::CpuInner;
pub(crate) use self::motherboard::MotherboardInner;
pub(crate) use self::process::ProcessInner;
pub(crate) use self::product::ProductInner;
pub(crate) use self::system::SystemInner;
pub use self::system::{MINIMUM_CPU_UPDATE_INTERVAL, SUPPORTED_SIGNALS};
}
_ => {}
}
cfg_select! {
feature = "disk" => {
pub mod disk;
pub(crate) use self::disk::{DiskInner, DisksInner};
}
_ => {}
}
cfg_select! {
feature = "component" => {
pub mod component;
pub(crate) use self::component::{ComponentInner, ComponentsInner};
}
_ => {}
}
cfg_select! {
feature = "gpu" => {
pub mod gpu;
pub(crate) use self::gpu::{GpuInner, GpusInner};
}
_ => {}
}
cfg_select! {
feature = "network" => {
pub mod network;
pub(crate) use self::network::{NetworkDataInner, NetworksInner};
}
_ => {}
}
cfg_select! {
feature = "user" => {
pub mod groups;
pub mod users;
pub(crate) use self::groups::{get_groups, new_groups};
pub(crate) use self::users::{UserInner, get_users, new_users};
}
_ => {}
}
#[cfg(any())]
mod component;
#[cfg(any())]
mod cpu;
#[cfg(any())]
mod disk;
#[cfg(any())]
mod gpu;
#[cfg(any())]
mod groups;
#[cfg(any())]
mod motherboard;
#[cfg(any())]
mod network;
#[cfg(any())]
mod process;
#[cfg(any())]
mod product;
#[cfg(any())]
mod system;
#[cfg(any())]
mod users;