sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
cfg_select! {
    any(target_os = "macos", target_os = "ios") => {
        #[allow(unused_imports)]
        pub(crate) use libc::__error as libc_errno;
    }
    any(target_os = "linux", target_os = "android") => {
        #[cfg(target_os = "linux")]
        #[allow(unused_imports)]
        pub(crate) use libc::__errno_location as libc_errno;
        #[cfg(target_os = "android")]
        #[allow(unused_imports)]
        pub(crate) use libc::__errno as libc_errno;
    }
    target_os = "freebsd" => {
        #[allow(unused_imports)]
        pub(crate) use libc::__error as libc_errno;
    }
    target_os = "netbsd" => {
        #[allow(unused_imports)]
        pub(crate) use libc::__errno as libc_errno;
    }
    _ => {
        compile_error!("Invalid cfg!");
    }
}

cfg_select! {
    feature = "disk" => {
        pub(crate) struct DisksInner {
            pub(crate) disks: Vec<crate::Disk>,
        }

        impl DisksInner {
            pub(crate) fn into_vec(self) -> Vec<crate::Disk> {
                self.disks
            }
        }
    }
    _ => {}
}

#[cfg(feature = "network")]
pub(crate) mod ffi;

cfg_select! {
    feature = "user" => {
        // On iOS the apple module supplies its own `UserInner` and `get_users` stubs, so `unix::users` is unused there.
        #[cfg(not(target_os = "ios"))]
        pub(crate) mod users;
        pub(crate) mod groups;
    }
    _ => {}
}

pub(crate) mod utils;

// Kept visible so rustfmt can format these modules.
#[cfg(any())]
mod groups;
#[cfg(any())]
mod users;