Repo of the Day
anomalyco/rune
Published: Nov 25, 2026
Open repository ↗Rune: Native UI framework
Summary
Rune is a native, GPU-rendered UI framework written in Rust for macOS, Windows, Linux, iOS, and the web. It includes its own renderer, text, layout, and spring animation support, and every app can run headlessly so a coding agent can render PNGs, inspect the element tree, and drive the interface with scripted input.
What it is useful for
Rune is useful for Rust applications that need a user interface across desktop, mobile, and web platforms. It gives engineers a framework-level rendering and layout stack rather than requiring each application to combine those pieces independently.
The README demonstrates a state-driven switch. A view function receives application state and returns an El tree. The example creates a labeled text element and a custom switch with a key, role, checked state, focusable flag, dimensions, colors, rounded corners, spring motion, and an on_press handler that toggles State::on. The same example places the switch knob using absolute coordinates and arranges the label and control in a centered column.
Headless operation is useful for automated visual checks and agent-driven development. Instead of requiring a visible window, an agent can produce PNG output, dump the element tree, and exercise controls with scripted input. The repository’s demos also include a coding-agent application, chat and settings interfaces, a split diff component, and GPU effects; rune-kit is the repository’s component directory.
How engineers can use it
Start with examples/hello, then use examples/README.md as the examples index and crates/rune/README.md for framework-level documentation.
Add Rune to the application’s Cargo.toml:
[dependencies]
rune = { git = "https://github.com/anomalyco/rune", rev = "<dev rev>" }
Rune is pre-release. The README says to pin an exact dev revision because the dev branch is never rewritten. Copy the current complete [patch.crates-io] list from the repository’s root Cargo.toml into the consuming workspace’s root Cargo.toml, using the same revision for every patched crate. Cargo does not inherit these patches from a dependency, and the list must be checked whenever the pinned revision changes. The “Depending on Rune” section in crates/rune/README.md contains the detailed procedure.
Windows builds have an additional documented constraint: MSVC requires the Visual Studio C++ build tools, while the GNU toolchain requires MinGW-w64 binutils on PATH. The README provides the corresponding MSYS2 pacman command and a RUSTFLAGS override for dlltool.
The project does not accept pull requests; the README directs contributors to open an issue describing a bug or idea.