![Travis Build Status] ![Latest Version]
Add the following dependency to your Cargo manifest…
toml
[dependencies]
lazytable = "0.1"
and look at the docs: * lazytable at crates.io * lazytable documentation
```rust
extern crate lazytable; use lazytable::Table;
fn main() { let mut table = Table::withwidth(23); table.settitle(row!["who", "what", "when"]); table.addrow(row!["da", "foobar foobar", "bar"]); table.addrow(row!["da", "foobar!!", "bar"]); print!("{}", table); } ```
This will output:
who | what | when
-----|----------|------
da | foobar | bar
| foobar |
da | foobar!! | bar
prettytable is awesome. But wrapping in a teminal is no fun.
For now lazytable only produces a simple table like this (given a terminal width of 20):
Given width of 20
:
```
```
Without a width or with prettytable: ```
```