1 | // Take a look at the license at the top of the repository in the LICENSE file. |
2 | |
3 | pub(crate) mod utils; |
4 | |
5 | cfg_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" )] |
42 | pub const IS_SUPPORTED_SYSTEM: bool = true; |
43 | |