sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
pub(crate) mod utils;

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;
        pub use crate::platform::bsd::system_common::SUPPORTED_SIGNALS;
    }
    _ => {}
}
cfg_select! {
    feature = "disk" => {
        pub mod disk;

        pub(crate) use self::disk::DiskInner;
        pub(crate) use crate::platform::unix::DisksInner;
    }
    _ => {}
}
cfg_select! {
    feature = "component" => {
        pub(crate) use crate::platform::bsd::component;
        pub(crate) use self::component::{ComponentInner, ComponentsInner};
    }
    _ => {}
}
cfg_select! {
    feature = "gpu" => {
        #[path = "../bsd/gpu.rs"]
        pub mod gpu;

        pub(crate) use self::gpu::{GpuInner, GpusInner};
    }
    _ => {}
}
cfg_select! {
    feature = "network" => {
        pub mod network;

        pub(crate) use self::network::NetworksInner;
        pub(crate) use crate::platform::bsd::NetworkDataInner;
    }
    _ => {}
}
cfg_select! {
    feature = "user" => {
        pub(crate) use crate::platform::unix::groups::{get_groups, new_groups};
        pub(crate) use crate::platform::unix::users::{get_users, new_users, UserInner};
    }
    _ => {}
}

#[cfg(any(feature = "disk", feature = "system"))]
pub mod ffi;

// Kept visible so rustfmt can format these modules.
#[cfg(any())]
mod cpu;
#[cfg(any())]
mod disk;
#[cfg(any())]
mod motherboard;
#[cfg(any())]
mod network;
#[cfg(any())]
mod process;
#[cfg(any())]
mod product;
#[cfg(any())]
mod system;

#[cfg(feature = "hardware")]
#[path = "../hardware_stub.rs"]
pub(crate) mod hardware;