#info #fancy #system-info #tui #cpu #memory

bin+lib fancy_sys_info

fancy system info library

3 releases

0.1.2 Sep 23, 2024
0.1.1 Sep 23, 2024
0.1.0 Sep 23, 2024

#504 in Command-line interface


Used in fancy-sys-info-test

MIT license

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 and crossterm.
  • 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
~131K SLoC