sysinfo/unix/linux/
mod.rs1pub(crate) mod utils;
4
5cfg_if! {
6 if #[cfg(feature = "system")] {
7 pub mod cpu;
8 pub mod process;
9 pub mod system;
10
11 pub(crate) use self::cpu::CpuInner;
12 pub(crate) use self::process::ProcessInner;
13 pub(crate) use self::system::SystemInner;
14 pub use self::system::{MINIMUM_CPU_UPDATE_INTERVAL, SUPPORTED_SIGNALS};
15 }
16 if #[cfg(feature = "disk")] {
17 pub mod disk;
18
19 pub(crate) use self::disk::DiskInner;
20 pub(crate) use crate::unix::DisksInner;
21 }
22
23 if #[cfg(feature = "component")] {
24 pub mod component;
25
26 pub(crate) use self::component::{ComponentInner, ComponentsInner};
27 }
28
29 if #[cfg(feature = "network")] {
30 pub mod network;
31
32 pub(crate) use self::network::{NetworkDataInner, NetworksInner};
33 }
34
35 if #[cfg(feature = "user")] {
36 pub(crate) use crate::unix::groups::get_groups;
37 pub(crate) use crate::unix::users::{get_users, UserInner};
38 }
39}
40
41#[doc = include_str!("../../../md_doc/is_supported.md")]
42pub const IS_SUPPORTED_SYSTEM: bool = true;
43
44#[cfg(any())]
46mod component;
47#[cfg(any())]
48mod cpu;
49#[cfg(any())]
50mod disk;
51#[cfg(any())]
52mod network;
53#[cfg(any())]
54mod process;
55#[cfg(any())]
56mod system;