Xilem – An experimental Rust native UI framework

Xilem and Masonry offer a high-level, reactive architecture for building native GUI applications in Rust, drawing inspiration from modern frameworks like SwiftUI and React.
Xilem and Masonry provide an experimental high-level architecture for writing GUI apps in Rust.
Masonry is a foundational crate for building natively compiled GUIs in Rust. It provides a retained widget tree and runs event handling and update passes on it.
Xilem is a high-level reactive framework inspired by React, SwiftUI and Elm. It lets users create a lightweight view tree, and changes the rendered app based on changes to the tree. It has a web backend and a Masonry backend.
Note for new users: If you're not sure what to use between Xilem and Masonry, you probably want Xilem. In general, if you're trying to make an app with minimum hassle, you probably want Xilem. Xilem is a UI framework, whereas Masonry is a toolkit for building UI frameworks (including Xilem).
Xilem and Masonry are built on top of:
- winit for window creation.
- Vello and wgpu for 2D graphics.
- Parley and Fontique for the text stack.
- AccessKit for plugging into accessibility APIs.
To add Xilem as a dependency to your project, run:
cargo add xilem
You need to have installed pkg-config, clang, and the development packages of wayland, libxkbcommon, libxcb, and vulkan-loader.
This version of Xilem has been verified to compile with Rust 1.92 and later. Future versions might increase the Rust version requirement.
Discussion of Xilem development happens in the Linebender Zulip, specifically the #xilem channel. Contributions are welcome by pull request under the Apache License 2.0.
Source: Hacker News
















