Expand description
§richrs - Beautiful Terminal Output for Rust
richrs is a Rust port of the Rich Python library,
providing beautiful terminal output with colors, styles, tables, progress bars, and more.
§Features
- Console: The main interface for terminal output with markup support
- Style: Define text styles with colors and attributes
- Text: Rich text objects with inline styling
- Table: Beautiful data tables with borders and alignment
- Panel: Boxed content with titles and subtitles
- Progress: Progress bars with multiple concurrent tasks
- Tree: Hierarchical data visualization
- Markup: Console markup syntax for inline styling
§Quick Start
ⓘ
use richrs::prelude::*;
let console = Console::new();
console.print("[bold red]Hello[/] [green]World![/]")?;§Compatibility
This library provides compatible markup syntax and styling with Python Rich. The API is designed to feel Rust-native while supporting the same features.
Modules§
- align
- Text alignment utilities.
- color
- Color definitions and parsing for terminal output.
- columns
- Columns layout for multi-column display.
- console
- Console is the main interface for terminal output.
- emoji
- Emoji support for console output.
- errors
- Error types for richrs.
- highlighter
- Highlighter for automatic text highlighting.
- live
- Live display for real-time terminal updates.
- markdown
- Markdown rendering for terminal output.
- markup
- Markup parsing for console output.
- panel
- Panel component for boxed content display.
- prelude
- Prelude module for convenient imports.
- pretty
- Pretty printing for Rust values.
- progress
- Progress bar component for displaying task progress.
- prompt
- User prompts with validation and styling.
- rule
- Rule component for horizontal dividers.
- spinner
- Spinner animations for console output.
- status
- Status display with animated spinner.
- style
- Style definitions for terminal text formatting.
- syntax
- Syntax highlighting for code.
- table
- Table component for tabular data display.
- text
- Rich text with inline styling support.
- tree
- Tree component for hierarchical data display.