sysinfo/unix/linux/
mod.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3pub(crate) mod utils;
4
5cfg_if! {
6    if #[cfg(feature = "system")] {
7        pub mod cpu;
8        pub mod motherboard;
9        pub mod process;
10        pub mod product;
11        pub mod system;
12
13        pub(crate) use self::cpu::CpuInner;
14        pub(crate) use self::motherboard::MotherboardInner;
15        pub(crate) use self::process::ProcessInner;
16        pub(crate) use self::product::ProductInner;
17        pub(crate) use self::system::SystemInner;
18        pub use self::system::{MINIMUM_CPU_UPDATE_INTERVAL, SUPPORTED_SIGNALS};
19    }
20    if #[cfg(feature = "disk")] {
21        pub mod disk;
22
23        pub(crate) use self::disk::DiskInner;
24        pub(crate) use crate::unix::DisksInner;
25    }
26
27    if #[cfg(feature = "component")] {
28        pub mod component;
29
30        pub(crate) use self::component::{ComponentInner, ComponentsInner};
31    }
32
33    if #[cfg(feature = "network")] {
34        pub mod network;
35
36        pub(crate) use self::network::{NetworkDataInner, NetworksInner};
37    }
38
39    if #[cfg(feature = "user")] {
40        pub(crate) use crate::unix::groups::get_groups;
41        pub(crate) use crate::unix::users::{get_users, UserInner};
42    }
43}
44
45#[doc = include_str!("../../../md_doc/is_supported.md")]
46pub const IS_SUPPORTED_SYSTEM: bool = true;
47
48// Make formattable by rustfmt.
49#[cfg(any())]
50mod component;
51#[cfg(any())]
52mod cpu;
53#[cfg(any())]
54mod disk;
55#[cfg(any())]
56mod motherboard;
57#[cfg(any())]
58mod network;
59#[cfg(any())]
60mod process;
61#[cfg(any())]
62mod product;
63#[cfg(any())]
64mod system;