sys_metrics 0.2.7

Cross-platform library to gather stats/information from the host
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "linux")]
pub use linux::*;

#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "macos")]
pub use macos::*;

#[cfg(target_os = "linux")]
#[inline]
pub(crate) fn err_not_found() -> std::io::Error {
    std::io::Error::new(
        std::io::ErrorKind::Other,
        "Content of WSL's path doesn't match our criteria.",
    )
}