sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
#[cfg(any(target_os = "ios", feature = "apple-sandbox"))]
pub(crate) mod sandbox;

mod ffi;
#[cfg(feature = "system")]
pub(crate) mod io_platform;
mod utils;

cfg_select! {
    all(target_os = "macos", any(feature = "disk", feature = "system", feature = "component", feature = "network")) => {
        pub(crate) mod macos;
        pub(crate) use self::macos as inner;
    }
    all(target_os = "ios", any(feature = "system", feature = "component")) => {
        pub(crate) mod ios;
        pub(crate) use self::ios as inner;
    }
    _ => {}
}
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;
        pub(crate) use crate::platform::unix::DisksInner;
    }
    _ => {}
}
cfg_select! {
    feature = "gpu" => {
        pub mod gpu;

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

        pub(crate) use crate::platform::network_data::NetworkDataInner;
        pub(crate) use self::network::NetworksInner;
    }
    _ => {}
}
cfg_select! {
    feature = "user" => {
        // `users.rs` binds OpenDirectory, which is macOS-only.
        #[cfg(target_os = "macos")]
        pub mod users;
        #[cfg(target_os = "ios")]
        pub use crate::sys::sandbox::users;

        pub(crate) use crate::platform::unix::groups::{get_groups, new_groups};
        #[cfg(target_os = "macos")]
        pub(crate) use crate::platform::unix::users::UserInner;
        #[cfg(target_os = "ios")]
        pub(crate) use self::users::UserInner;
        pub(crate) use self::users::{get_users, new_users};
    }
    _ => {}
}

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

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