tui-rs v0.17.0 Release Notes
Release Date: 2022-01-22 // over 2 years ago-
๐ Features
- โ Add option to
widgets::List
to repeat the hightlight symbol for each line of multi-line items (#533). - โ Add option to control the alignment of
Axis
labels in theChart
widget (#568).
๐ฅ Breaking changes
- ๐ The minimum supported rust version is now
1.56.1
.
๐ New default backend and consolidated backend options (#553)
- 0๏ธโฃ
crossterm
is now the default backend. If you are already using thecrossterm
backend, you can simplify your dependency specification inCargo.toml
:diff - tui = { version = "0.16", default-features = false, features = ["crossterm"] } + tui = "0.17"
If you are using thetermion
backend, yourCargo
is now a bit more verbose:diff - tui = "0.16" + tui = { version = "0.17", default-features = false, features = ["termion"] }
crossterm
has also been bumped to version0.22
.๐ Because of their apparent low usage,
curses
andrustbox
backends have been removed. If you are using one of them, you can import their last implementation in your own project:Canvas labels (#543)
- Labels of the
Canvas
widget are nowtext::Spans
. โก๏ธ The signature ofwidgets::canvas::Context::print
has thus been updated:diff - ctx.print(x, y, "Some text", Color::Yellow); + ctx.print(x, y, Span::styled("Some text", Style::default().fg(Color::Yellow)))
- โ Add option to