.github
chore(deps): bump actions/checkout from 6 to 7 (#133)component
chore: fix ci.ymls rust-cache placement (#137)component-generated
chore: fix ci.ymls rust-cache placement (#137)event-driven
chore: fix ci.ymls rust-cache placement (#137)event-driven-async
chore: fix ci.ymls rust-cache placement (#137)event-driven-async-generated
chore: fix ci.ymls rust-cache placement (#137)event-driven-generated
chore: fix ci.ymls rust-cache placement (#137)hello-world
chore: fix ci.ymls rust-cache placement (#137)hello-world-generated
chore: fix ci.ymls rust-cache placement (#137)simple
chore: fix ci.ymls rust-cache placement (#137)simple-async
chore: fix ci.ymls rust-cache placement (#137)simple-async-generated
chore: fix ci.ymls rust-cache placement (#137)simple-generated
chore: fix ci.ymls rust-cache placement (#137).gitignore
Add generated samples of each template (#65).markdownlint.toml
Move template to subtemplate named simple (#22)cargo-generate.toml
chore(cargo-generate): add new templates to the configCargo.lock
chore(deps): bump dependencies to their latest versions (#134)Cargo.toml
feat: add recommended optimization options (#113)justfile
Add description field to Cargo.toml files (#102)LICENSE
Add copyright notice to LICENSEREADME.md
docs(readme): update the available templatesRatatui Templates 🧀
This repository contains templates for bootstrapping a Rust
TUI application with
Ratatui and
crossterm.
Getting Started
-
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.
Contributing
To keep the generated code up to date, install just and run just generate-all (or a specific
template - e.g. just generate-simple).