The Spectrum Dispatch News

technology

Rune: GPU-rendered Rust UI framework for desktop and web

Open-source framework offers native rendering across macOS, Windows, Linux and web with headless testing capabilities for developers.

Rune: GPU-rendered Rust UI framework for desktop and web

Rune is a native GPU-rendered UI framework written in Rust that supports macOS, Windows, Linux, and web platforms. According to the GitHub repository, the framework includes its own renderer, text layout engine, and animation system (springs).

Rune: GPU-rendered Rust UI framework for desktop and web

Key features of Rune include the ability to run applications headless, which allows developers to render interfaces to PNG files, dump element trees for inspection, and drive applications with scripted input. This capability enables automated testing and validation of UI components without requiring a display.

The framework provides a declarative syntax for building interfaces. Example code shown in the repository demonstrates creating UI elements like text labels and interactive switches with properties such as size, color, radius, and motion animations. Developers can compose elements hierarchically using functions like col() for columns and child() to nest components.

Rune is currently in pre-release status. According to the documentation, developers should pin a specific revision when adding Rune as a dependency, using the format rune = { git = "https://github.com/anomalyco/rune", rev = "<dev rev>" }. The project maintains a stable dev branch that is never rewritten, allowing for reliable pinning.

The repository includes getting-started resources, with developers directed to start from examples/hello and the crates/rune/README.md file. The project maintains documentation, a component library, examples, and a changelog.

Rune is released under the MIT license and is maintained by Anomaly. The project does not accept pull requests directly; contributors are instead encouraged to open issues describing bugs or feature ideas. According to the repository, the maintainers typically respond quickly to issues.

Key facts

  • Rune is a GPU-rendered UI framework built in Rust supporting macOS, Windows, Linux, and web
  • The framework includes its own renderer, text layout, and animation system
  • Applications can run headless to render to PNG and inspect element trees
  • Rune is currently pre-release with a stable dev branch for dependency pinning
  • The project is MIT licensed and maintained by Anomaly

Sources

← All posts