1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//!
//! A crate that allows you to get information about your linux system.  
//! It's still a work in progress put the base modules *cpu*,
//! *memory*, *system* and *storage* are already there.  
//! Any feedback is welcome.
//!
//! ## Async
//! At the moment every method here reads from /proc/* which
//! does not benefit from async code.

/// Get cpu information.
pub mod cpu;
/// Get memory information.
pub mod memory;
// Get system information (uptime, hostname, usernames, groups).
pub mod system;
// Get storage information (partitions, mounts, stats, raids).
pub mod storage;
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
/// get bios / system information
pub mod bios;
#[cfg(feature = "network")]
#[cfg_attr(docsrs, doc(cfg(feature = "network")))]
pub mod network;

mod util;


pub mod unit {
	use super::*;
	pub use util::{DataSize, DataSizeUnit};
}