ADR 0003: Bubble Tea v2's names, one crate
- Status: Accepted, 2026-11-27 (decisions D1, D2 and D3 of the implementation plan)
Context
People who reach for an Elm-style TUI in Rust often know Bubble Tea. The prototype used its own names (Carnet for the program).
Decision
- The runtime uses Bubble Tea v2's names:
Program,Model,Msg,Cmd,View, and its key strings byte for byte. The docs import the crate astea. - The Bubbles components are a
bubblesmodule behind a default feature, in the same crate, not a second crate. - Styling is a small
stylemodule with Lip Gloss's names, not a Lip Gloss clone. - The target is Bubble Tea v2 only (v2.2.0 at
f510168f); v1 shapes are not supported.
Consequences
- A Go program converts line by line (
docs/go-to-rust.md), and every deliberate difference is written in the CHANGELOG. - Rust idioms win where Go's shape does not fit (typed messages instead of
tea.Msginterfaces, builders instead of struct fields). - Lip Gloss's layers, Huh and Wish are out of scope for this crate.