table-tools 0.1.0
Render aligned text tables with plain, ASCII, Unicode box and Markdown styles
Install
cargo add table-tools --registry rupm
In Ruststudio: Packages, search for table-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# table-tools
Render aligned text tables with plain, ASCII, Unicode box and Markdown styles
Add it with `rupm add table-tools` (or `cargo add table-tools --registry rupm`).
```rust
use table_tools::{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 │"));
```