Cargo Features

[dependencies]
ratatui-widgets = { version = "0.3.0-alpha.0", default-features = false, features = ["serde", "all-widgets", "calendar", "unstable", "unstable-rendered-line-info", "document-features"] }
default = all-widgets

The all-widgets feature is set by default whenever ratatui-widgets is added without default-features = false somewhere in the dependency tree.

serde

enables serialization and deserialization of style and color types using the serde crate. This is useful if you want to save themes to a file.

Enables serde, serde of ratatui-core

all-widgets default = calendar

Widgets that add dependencies are gated behind feature flags to prevent unused transitive dependencies. The available features are:

enables all widgets.

calendar all-widgets

enables the calendar widget module and adds a dependency on time.

Enables time

Affects ratatui-widgets::calendar

unstable = unstable-rendered-line-info

Enable all unstable features.

unstable-rendered-line-info unstable?

Enables the Paragraph::line_count Paragraph::line_width methods which are experimental and may change in the future. See Issue 293 for more details.

Features from optional dependencies

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml