Cargo Features
[dependencies]
tuirealm = { version = "3.0.1", default-features = false, features = ["async-ports", "derive", "serialize", "crossterm", "termion"] }
- default = crossterm, derive
-
These default features are set whenever
tuirealm
is added without
somewhere in the dependency tree.default-features = false - async-ports
-
Enables async-trait, futures-util, tokio, and tokio-util and event-stream of optional crossterm
crossterm:
Optional Features
Enables the EventStream struct for async event reading.
Affects
listener::PollAsync
,mock::MockPollAsync
… - derive default
-
Enables tuirealm_derive
- serialize
- crossterm default
-
Enables crossterm and crossterm of ratatui
ratatui:
Generally an application will only use one backend, so you should only enable one of the following features: enables the
CrosstermBackend
backend and adds a dependency oncrossterm
. - termion
-
Enables termion and termion of ratatui
ratatui:
enables the
TermionBackend
backend and adds a dependency ontermion
.