tui-rs v0.17.0 Release Notes

Release Date: 2022-01-22 // 6 months 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 the Chart 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 the crossterm backend, you can simplify your dependency specification in Cargo.toml: diff - tui = { version = "0.16", default-features = false, features = ["crossterm"] } + tui = "0.17" If you are using the termion backend, your Cargo 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 version 0.22.

    ๐Ÿšš Because of their apparent low usage, curses and rustbox 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 now text::Spans. โšก๏ธ The signature of widgets::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)))