From 34c7a91713034e683a727f3650b34d9e392f19e3 Mon Sep 17 00:00:00 2001 From: Pierre-Henri Symoneaux Date: Wed, 18 Apr 2018 23:18:56 +0200 Subject: Updated README and examples with removal of the term crate Following changes made in #78 --- README.md | 8 +++----- examples/style.rs | 1 - src/main.rs | 4 +--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d247972..c5b07e9 100644 --- a/README.md +++ b/README.md @@ -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); -- cgit v1.2.3