rice-1.0.0 is not a library.
Visit the last successful build:
rice-3.0.0
Rice 🍚
A modern, feature-rich system information tool written in Rust.
Features
- System Information: OS details, hostname, kernel version, CPU count, memory, and uptime
- CPU Monitoring: Per-core CPU usage, frequency, and brand information
- Memory Analysis: Total, used, and available memory with visual usage bars
- Disk Information: Mount points, filesystem types, and space usage (limited in current sysinfo version)
- Network Statistics: Interface statistics and data transfer metrics (limited in current sysinfo version)
- Multiple Output Formats: Human-readable text and machine-readable JSON
- Colored Output: Beautiful terminal output with color coding
- Structured Logging: Built-in logging with configurable verbosity
Installation
From Source
Requirements
- Rust 1.70+ (2021 edition)
- macOS, Linux, or Windows
Usage
Basic Commands
# Show general system information
# Show specific information categories
# Enable verbose logging
# Output in JSON format
Examples
# Get system overview with colored output
# Get CPU information in JSON format
# Get memory usage with verbose logging
# Get disk information
# Get network statistics
Command Line Options
USAGE:
rice [OPTIONS] [COMMAND]
OPTIONS:
-f, --format <FORMAT> Output format (text, json) [default: text]
-h, --help Print help
-v, --verbose Enable verbose logging
-V, --version Print version
COMMANDS:
system Show system information
cpu Show CPU information
memory Show memory information
disk Show disk information
network Show network information
help Print this message or the help of the given subcommand(s)
Output Formats
Text Format (Default)
Beautiful, colored terminal output with organized sections and visual elements like memory usage bars.
JSON Format
Machine-readable output perfect for scripting and automation:
Development
Building
Testing
Running
Dependencies
- clap: Modern command-line argument parsing (v4 with derive features)
- sysinfo: Cross-platform system information gathering (v0.30)
- anyhow: Error handling
- serde: Serialization for JSON output
- colored: Terminal color support
- tracing: Structured logging
Current Limitations
Due to API changes in the sysinfo crate v0.30, some features are currently limited:
- Disk information display is not fully implemented
- Network statistics are not fully implemented
These features will be restored in future updates as the sysinfo API stabilizes.
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.