75 lines
1.6 KiB
Rust
75 lines
1.6 KiB
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
mod utils;
|
|
|
|
cfg_if! {
|
|
if #[cfg(feature = "system")] {
|
|
mod process;
|
|
mod cpu;
|
|
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")] {
|
|
mod disk;
|
|
|
|
pub(crate) use self::disk::{DiskInner, DisksInner};
|
|
}
|
|
|
|
if #[cfg(feature = "component")] {
|
|
pub mod component;
|
|
|
|
pub(crate) use self::component::{ComponentInner, ComponentsInner};
|
|
}
|
|
|
|
if #[cfg(feature = "network")] {
|
|
mod network;
|
|
pub(crate) mod network_helper;
|
|
|
|
pub(crate) use self::network::{NetworkDataInner, NetworksInner};
|
|
}
|
|
|
|
if #[cfg(feature = "user")] {
|
|
mod groups;
|
|
mod users;
|
|
|
|
pub(crate) use self::groups::get_groups;
|
|
pub(crate) use self::users::get_users;
|
|
pub(crate) use self::users::UserInner;
|
|
}
|
|
|
|
if #[cfg(any(feature = "user", feature = "system"))] {
|
|
mod sid;
|
|
|
|
pub(crate) use self::sid::Sid;
|
|
}
|
|
}
|
|
|
|
#[doc = include_str!("../../md_doc/is_supported.md")]
|
|
pub const IS_SUPPORTED_SYSTEM: bool = true;
|
|
|
|
// Make formattable by rustfmt.
|
|
#[cfg(any())]
|
|
mod component;
|
|
#[cfg(any())]
|
|
mod cpu;
|
|
#[cfg(any())]
|
|
mod disk;
|
|
#[cfg(any())]
|
|
mod groups;
|
|
#[cfg(any())]
|
|
mod network;
|
|
#[cfg(any())]
|
|
mod network_helper;
|
|
#[cfg(any())]
|
|
mod process;
|
|
#[cfg(any())]
|
|
mod sid;
|
|
#[cfg(any())]
|
|
mod system;
|
|
#[cfg(any())]
|
|
mod users;
|