3 releases
0.1.2 | Sep 23, 2024 |
---|---|
0.1.1 | Sep 23, 2024 |
0.1.0 | Sep 23, 2024 |
#481 in Command-line interface
446 downloads per month
Used in fancy-sys-info-test
7KB
102 lines
Fancy Sys Info
A Rust library that provides system information such as memory usage and CPU statistics, along with a fancy terminal user interface (TUI) for displaying this information.
Features
- Retrieve system memory and CPU usage statistics.
- Interactive TUI built with
tui
andcrossterm
. - Supports displaying system info in a user-friendly format.
- Easy to integrate into your Rust projects.
Requirements
- Rust (1.50.0 or later)
cargo
for building and managing the project
Installation
To use this library in your Rust project, add the following to your Cargo.toml
:
[dependencies]
fancy-sys-info = "0.1.0" # Replace with the latest version
example
// src/bin/main.rs
use fancy_sys_info::run;
fn main() {
if let Err(err) = run() {
eprintln!("Error: {}", err);
}
}
Dependencies
~4–15MB
~130K SLoC