From 7870793b4b4b8e9ee4c0a70d51562cd4fee94f06 Mon Sep 17 00:00:00 2001 From: Florian Dehau Date: Sun, 1 Aug 2021 20:02:18 +0200 Subject: [PATCH] Release v0.16.0 --- CHANGELOG.md | 16 ++++++++++++++++ Cargo.toml | 4 ++-- README.md | 24 ++++++++++++------------ src/lib.rs | 4 ++-- 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da5085cb..cf4c07e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ ## To be released +## v0.16.0 - 2021-08-01 + +### Features + +* Update `crossterm` to `0.20`. +* Add `From>` implementation for `text::Text` (#471). +* Add option to right or center align the title of a `widgets::Block` (#462). + +### Fixes + +* Apply label style in `widgets::Gauge` and avoid panics because of overflows with long labels (#494). +* Avoid panics because of overflows with long axis labels in `widgets::Chart` (#512). +* Fix computation of column widths in `widgets::Table` (#514). +* Fix panics because of invalid offset when input changes between two frames in `widgets::List` and + `widgets::Chart` (#516). + ## v0.15.0 - 2021-05-02 ### Features diff --git a/Cargo.toml b/Cargo.toml index 1be2aa08..220f55d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "tui" -version = "0.15.0" +version = "0.16.0" authors = ["Florian Dehau "] description = """ A library to build rich terminal user interfaces or dashboards """ -documentation = "https://docs.rs/tui/0.15.0/tui/" +documentation = "https://docs.rs/tui/0.16.0/tui/" keywords = ["tui", "terminal", "dashboard"] repository = "https://github.com/fdehau/tui-rs" readme = "README.md" diff --git a/README.md b/README.md index 871e52fa..4659b7d8 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ cargo run --example termion_demo --release -- --tick-rate 200 where `tick-rate` is the UI refresh rate in ms. -The UI code is in [examples/demo/ui.rs](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/demo/ui.rs) while the -application state is in [examples/demo/app.rs](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/demo/app.rs). +The UI code is in [examples/demo/ui.rs](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/demo/ui.rs) while the +application state is in [examples/demo/app.rs](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/demo/app.rs). Beware that the `termion_demo` only works on Unix platforms. If you are a Windows user, you can see the same demo using the `crossterm` backend with the following command: @@ -71,16 +71,16 @@ cargo run --example crossterm_demo --no-default-features --features="crossterm" The library comes with the following list of widgets: - * [Block](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/block.rs) - * [Gauge](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/gauge.rs) - * [Sparkline](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/sparkline.rs) - * [Chart](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/chart.rs) - * [BarChart](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/barchart.rs) - * [List](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/list.rs) - * [Table](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/table.rs) - * [Paragraph](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/paragraph.rs) - * [Canvas (with line, point cloud, map)](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/canvas.rs) - * [Tabs](https://github.com/fdehau/tui-rs/blob/v0.15.0/examples/tabs.rs) + * [Block](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/block.rs) + * [Gauge](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/gauge.rs) + * [Sparkline](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/sparkline.rs) + * [Chart](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/chart.rs) + * [BarChart](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/barchart.rs) + * [List](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/list.rs) + * [Table](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/table.rs) + * [Paragraph](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/paragraph.rs) + * [Canvas (with line, point cloud, map)](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/canvas.rs) + * [Tabs](https://github.com/fdehau/tui-rs/blob/v0.16.0/examples/tabs.rs) Click on each item to see the source of the example. Run the examples with with cargo (e.g. to run the demo `cargo run --example demo`), and quit by pressing `q`. diff --git a/src/lib.rs b/src/lib.rs index 5a65e410..0c228ced 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies] -//! tui = "0.15" +//! tui = "0.16" //! termion = "1.5" //! ``` //! @@ -20,7 +20,7 @@ //! ```toml //! [dependencies] //! crossterm = "0.20" -//! tui = { version = "0.15", default-features = false, features = ['crossterm'] } +//! tui = { version = "0.16", default-features = false, features = ['crossterm'] } //! ``` //! //! The same logic applies for all other available backends.