This repository contains templates for bootstrapping a Rust
TUI application with
Ratatui and
crossterm.
-
Install
cargo-generatecargo install cargo-generate
-
Create a new app based on this repository:
cargo generate ratatui/templates
-
Choose one of the following templates:
- Hello World: A "Hello, World!" example.
- Simple | Simple Async: A simple example.
- Event Driven | Event Driven Async: An example of an event-driven TUI application.
- Component: An example of a component-based TUI application.
To keep the generated code up to date, install just and run just generate-all (or a specific
template - e.g. just generate-simple).