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 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. masonry/ and xilem/ are the respective entry points of these projects for new users. See ARCHITECTURE.md for details about the repository structure. 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. 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). From https://github.com/StefanSalewski/xilem-chess/ The calc_masonry example. The to_do_mvc example. After cloning this repository, you can try running the examples, such as the to_do_mvc example shown above: cargo run --example to_do_mvc To add Xilem as a dependency to your project, run You need to have installed pkg-config, clang, and the development packages of wayland, libxkbcommon, libxcb, and vulkan-loader. Most distributions have pkg-config installed by default. To install the remaining packages on Fedora, run: sudo dnf install clang wayland-devel libxkbcommon-x11-devel libxcb-devel vulkan-loader-devel To install the remaining packages on Debian or Ubuntu, run: sudo apt-get install clang libwayland-dev libxkbcommon-x11-dev libvulkan-dev There's a Nix flake in docs/ which may be used for developing on NixOS: [!INFO] This flake is provided as a starting point, and we do not ...
First seen: 2026-04-08 01:13
Last seen: 2026-04-08 03:14