Fast-Rich¶
High-performance Rust port of Python's Rich library
Beautiful terminal formatting for Rust applications
What is Fast-Rich?¶
Fast-Rich brings the power of Python's popular Rich library to Rust, enabling you to create beautiful, colorful terminal output with minimal effort.

See it in Action¶
Below is a demonstration of all library features running in sequence, including tables, panels, progress bars, and live displays:

Alpha Status
This project is currently in Alpha. APIs may change and some features may be incomplete.
✨ Features¶
-
:material-palette:{ .lg .middle } Rich Text & Styles
Bold, italic, underline, colors (8/256/RGB), and markup syntax
-
:material-table:{ .lg .middle } Tables
Unicode borders, auto-sizing columns, custom styles
-
:material-progress-check:{ .lg .middle } Progress Bars
Multi-task progress, spinners, ETA, customizable columns
-
:material-refresh:{ .lg .middle } Live Display
Flicker-free auto-updating content for dashboards
-
:material-code-tags:{ .lg .middle } Syntax Highlighting
Code highlighting with multiple themes via
syntect -
:material-language-markdown:{ .lg .middle } Markdown
Render Markdown directly in the terminal
-
:material-file-tree:{ .lg .middle } Tree Views
Hierarchical data visualization with customizable guides
-
:material-view-dashboard:{ .lg .middle } Layouts
Split screens and complex terminal layouts
Quick Start¶
Add fast-rich to your Cargo.toml:
Then create beautiful terminal output:
use fast_rich::prelude::*;
fn main() {
let console = Console::new();
// Styled text with markup
console.print("[bold red]Hello[/] [blue]World[/]!");
// Create a table
let mut table = Table::new();
table.add_column("Feature");
table.add_column("Status");
table.add_row_strs(&["Rich Text", "✅ Ready"]);
table.add_row_strs(&["Tables", "✅ Ready"]);
console.print_renderable(&table);
}
Output:
Hello World!
╭─────────────┬──────────╮
│ Feature │ Status │
├─────────────┼──────────┤
│ Rich Text │ ✅ Ready │
│ Tables │ ✅ Ready │
╰─────────────┴──────────╯
Feature Comparison¶
| Feature | Python Rich | Fast-Rich |
|---|---|---|
| Rich Text & Styles | ✅ | ✅ |
| Tables | ✅ | ✅ |
| Progress Bars | ✅ | ✅ |
| Live Display | ✅ | ✅ |
| Syntax Highlighting | ✅ | ✅ |
| Markdown | ✅ | ✅ |
| Tree Views | ✅ | ✅ |
| Layouts | ✅ | ✅ |
| Tracebacks | ✅ | ✅ |
| Logging Handler | ✅ | ✅ |
Next Steps¶
-
:material-rocket-launch:{ .lg .middle } Getting Started
Installation and first steps
-
:material-book-open-variant:{ .lg .middle } Guides
Detailed feature documentation
-
:material-code-braces:{ .lg .middle } Examples
Runnable example programs
-
:material-api:{ .lg .middle } API Reference
Full API documentation