Crate linux_info

Source
Expand description

§Linux Info

Crates.io Documentation GitHub issues

linux-info is a Rust crate that allows you to retrieve information about your Linux system. It provides various modules to access different aspects of your system.

§Modules

The linux-info crate currently provides the following modules:

  • cpu: Retrieves information about the CPU.
  • memory: Retrieves information about the system memory.
  • system: Retrieves general system information.
  • storage: Retrieves information about storage devices.
  • bios: Retrieves BIOS information.
  • network: Retrieves network-related information. (Requires the network feature)

The crate also includes Serde support, which can be enabled with the serde feature.

§Installation

To use linux-info in your Rust project, add the following line to your Cargo.toml file:

linux-info = "0.1"

§Contribution

Contributions to this crate are welcome! If you have any ideas, bug reports, or feature requests, please open an issue on the GitHub repository.

Modules§

bios
get bios / system information
cpu
Get cpu information.
memory
Get memory information.
networknetwork
Get information about the network.
storage
get information about drives and raids.
system
get system information (uptime, hostname, os release, load average, usernames, groups).
unit