diff options
author | Pierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com> | 2018-04-18 23:18:56 +0200 |
---|---|---|
committer | Pierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com> | 2018-04-18 23:18:56 +0200 |
commit | 34c7a91713034e683a727f3650b34d9e392f19e3 (patch) | |
tree | fcf88ef3ce68e2a6a91f0bc43188f69d84870b1b | |
parent | 1a6c738166f839d80c683c370b787a00ef333fad (diff) |
Updated README and examples with removal of the term crate
Following changes made in #78
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | examples/style.rs | 1 | ||||
-rw-r--r-- | src/main.rs | 4 |
3 files changed, 4 insertions, 9 deletions
@@ -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
@@ -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};
/* ... */
diff --git a/examples/style.rs b/examples/style.rs index 80e2b61..b7cef57 100644 --- a/examples/style.rs +++ b/examples/style.rs @@ -1,6 +1,5 @@ #[macro_use] extern crate prettytable; -extern crate term; use prettytable::Table; use prettytable::row::Row; use prettytable::cell::Cell; diff --git a/src/main.rs b/src/main.rs index 71c0ebe..8251340 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); |