Skip to content

Commit

Permalink
Updated README and examples with removal of the term crate
Browse files Browse the repository at this point in the history
Following changes made in #78
  • Loading branch information
phsym committed Apr 18, 2018
1 parent 1a6c738 commit 34c7a91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ Include the library as a dependency to your project by adding the following line
prettytable-rs = "^0.6"
```

The library requires at least `rust v1.9.0` in order to build,
while `master` branch only builds starting from `rust v1.13.0`
The library requires at least `rust v1.18.0`.

## Basic usage

Expand Down Expand Up @@ -146,12 +145,11 @@ Rows may have different numbers of cells. The table will automatically adapt to

Tables can have a styled output with background and foreground colors, bold and italic as configurable settings, thanks to the `term` crate.

`term` style attributes can be used
`term` style attributes are reexported

- directly:
```rust
extern crate term;
use term::{Attr, color};
use prettytable::{Attr, color};

/* ... */

Expand Down
1 change: 0 additions & 1 deletion examples/style.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#[macro_use]
extern crate prettytable;
extern crate term;
use prettytable::Table;
use prettytable::row::Row;
use prettytable::cell::Cell;
Expand Down
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// #![feature(trace_macros)]
#[macro_use]
extern crate prettytable;
extern crate term;
use prettytable::Table;
use prettytable::row::Row;
use prettytable::cell::Cell;
use prettytable::format::*;

use term::{Attr, color};
use prettytable::{Attr, color};

// trace_macros!(true);

Expand Down

0 comments on commit 34c7a91

Please sign in to comment.