sysinfo/windows/
mod.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3mod utils;
4
5cfg_if! {
6    if #[cfg(feature = "system")] {
7        mod cpu;
8        mod ffi;
9        mod motherboard;
10        mod process;
11        mod product;
12        mod system;
13
14        pub(crate) use self::cpu::CpuInner;
15        pub(crate) use self::motherboard::MotherboardInner;
16        pub(crate) use self::process::ProcessInner;
17        pub(crate) use self::product::ProductInner;
18        pub(crate) use self::system::SystemInner;
19        pub use self::system::{MINIMUM_CPU_UPDATE_INTERVAL, SUPPORTED_SIGNALS};
20    }
21    if #[cfg(feature = "disk")] {
22        mod disk;
23
24        pub(crate) use self::disk::{DiskInner, 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        mod network;
35        pub(crate) mod network_helper;
36
37        pub(crate) use self::network::{NetworkDataInner, NetworksInner};
38    }
39
40    if #[cfg(feature = "user")] {
41        mod groups;
42        mod users;
43
44        pub(crate) use self::groups::get_groups;
45        pub(crate) use self::users::get_users;
46        pub(crate) use self::users::UserInner;
47    }
48
49    if #[cfg(any(feature = "user", feature = "system"))] {
50        mod sid;
51
52        pub(crate) use self::sid::Sid;
53    }
54}
55
56#[doc = include_str!("../../md_doc/is_supported.md")]
57pub const IS_SUPPORTED_SYSTEM: bool = true;
58
59// Make formattable by rustfmt.
60#[cfg(any())]
61mod component;
62#[cfg(any())]
63mod cpu;
64#[cfg(any())]
65mod disk;
66#[cfg(any())]
67mod ffi;
68#[cfg(any())]
69mod groups;
70#[cfg(any())]
71mod motherboard;
72#[cfg(any())]
73mod network;
74#[cfg(any())]
75mod network_helper;
76#[cfg(any())]
77mod process;
78#[cfg(any())]
79mod product;
80#[cfg(any())]
81mod sid;
82#[cfg(any())]
83mod system;
84#[cfg(any())]
85mod users;