1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
// Take a look at the license at the top of the repository in the LICENSE file.
pub(crate) mod utils;
cfg_if! {
if #[cfg(feature = "system")] {
pub mod cpu;
pub mod process;
pub mod system;
pub(crate) use self::cpu::CpuInner;
pub(crate) use self::process::ProcessInner;
pub(crate) use self::system::SystemInner;
pub use self::system::{MINIMUM_CPU_UPDATE_INTERVAL, SUPPORTED_SIGNALS};
}
if #[cfg(feature = "disk")] {
pub mod disk;
pub(crate) use self::disk::DiskInner;
pub(crate) use crate::unix::DisksInner;
}
if #[cfg(feature = "component")] {
pub mod component;
pub(crate) use self::component::{ComponentInner, ComponentsInner};
}
if #[cfg(feature = "network")] {
pub mod network;
pub(crate) use self::network::{NetworkDataInner, NetworksInner};
}
if #[cfg(feature = "user")] {
pub(crate) use crate::unix::groups::get_groups;
pub(crate) use crate::unix::users::{get_users, UserInner};
}
}
#[doc = include_str!("../../../md_doc/is_supported.md")]
pub const IS_SUPPORTED_SYSTEM: bool = true;