Packages / rupm

rs-cli-table 0.1.0

Render aligned text tables with plain, ASCII, Unicode box and Markdown styles

Install

cargo add rs-cli-table --registry rupm

In Ruststudio: Packages, search for rs-cli-table, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-cli-table

Render aligned text tables with plain, ASCII, Unicode box and Markdown styles

Add it with `rupm add rs-cli-table` (or `cargo add rs-cli-table --registry rupm`).

```rust
use rs_cli_table::{Align, Style, Table};

let mut t = Table::new(&["Name", "Qty"]);
t.row(&["apple", "3"]).row(&["kiwi", "12"]);
t.align(1, Align::Right).style(Style::Unicode);
println!("{t}");
// ┌───────┬─────┐
// │ Name  │ Qty │
// ├───────┼─────┤
// │ apple │   3 │
// │ kiwi  │  12 │
// └───────┴─────┘
assert!(t.render().contains("│ kiwi  │  12 │"));
```