FLUI
FLUI is a declarative UI framework for Rust, inspired by Flutter’s widget-style composition. Its
pipeline is a tree design — immutable View configuration → mutable Element lifecycle →
layout/paint RenderObject → a Layer tree built each frame, with a Semantics tree alongside
for accessibility → flui-engine compositor → wgpu GPU — with structure and APIs designed for
Rust. Cross-crate decisions are recorded as ADRs. See
AGENTS.md’s Design stance for the
full policy.
This book teaches the current development version of FLUI. Start with a checkout and the installation guide; what each platform has been run on is recorded in the repository’s platform status. API and feature choices can change between releases.
The book is incomplete. Chapters link to the working examples and reference material where
more detail is needed. Every Rust sample compiles and runs against the flui crate as a test of
the repository; the linked source has the required features.
Where to start
- New to FLUI and want to build an application: Getting Started, then the Tutorial.
- Ready to change a working example: the Cookbook for forms, async work, themes, animation, and testing.
- Choosing a state model or learning how a view becomes a frame: Concepts and State.
- Coming from Flutter and want the vocabulary mapping first: Flutter → FLUI mapping.
- Want to contribute to FLUI itself: Contributing to FLUI.
- Looking for the deep architectural reasoning, not just the how-to: Architecture.
Find the right reference
| Need | Source |
|---|---|
| Runnable applications and feature flags | Example commands |
| Public types and method contracts for your checkout | Run cargo doc -p flui --no-deps --open; enable the same features as your application. |
| Widget discovery | Widget catalog |
| Testing an application without a native window | Testing recipe |
| Design decisions and crate boundaries | Architecture |
| Current release requirements | Release requirements |
| Which platforms have been run, and where FLUI falls short | Platform status and gaps |
The repository contains this book’s source. Use the edit button on a chapter to propose a documentation correction.