Features
As ratatui grows and evolves, this list may change, so make sure to check the main repo if you are unsure.
Backend Selection
See How to Choose a Backend for more information. However, for most cases, the
default crossterm
backend is enough.
# Defaults to crossterm
cargo add ratatui
# Unset the default crossterm feature and select one of the other backends
cargo add ratatui --no-default-features --features=terminon
cargo add ratatui --no-default-features --features=termwiz
All-Widgets
This feature enables some extra widgets that are not in default
to save on compile time. As of
v0.21, the only widget in this feature group is the calendar
widget, which can be enabled with the
widget-calendar
feature.
cargo add ratatui --features all-widgets
Widget-Calendar
This feature enables the calendar widget, which requires the time
crate.
cargo add ratatui --features widget-calendar
Serde
cargo add ratatui --features serde