linux_info/lib.rs
1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4/// Get cpu information.
5pub mod cpu;
6/// Get memory information.
7pub mod memory;
8// Get system information (uptime, hostname, usernames, groups).
9pub mod system;
10// Get storage information (partitions, mounts, stats, raids).
11pub mod storage;
12#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
13/// get bios / system information
14pub mod bios;
15#[cfg(feature = "network")]
16#[cfg_attr(docsrs, doc(cfg(feature = "network")))]
17pub mod network;
18
19mod util;
20
21
22pub mod unit {
23 use super::*;
24 pub use util::{DataSize, DataSizeUnit};
25}