百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

masonry

> 编程语言
开源

Rust UI 设计工具包 - 已移动。

395 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Rust UI 设计工具包 - 已移动。

[!Important] Masonry has been moved into the Xilem repository. It can be found in the masonry folder at the root in that repository, which in turn can be found at . This repository may be useful for exploring the history of Masonry.

The version of Masonry in that repository is now also published on crates.io.

Masonry

[!Caution] This README is outdated.

See the info box above for more details. The previous README is included for historical reference.

Masonry is a framework that aims to provide the foundation for Rust GUI libraries.

Masonry gives you a platform to create windows (using Glazier as a backend) each with a tree of widgets. It also gives you tools to inspect that widget tree at runtime, write unit tests on it, and generally have an easier time debugging and maintaining your app.

The framework is not opinionated about what your user-facing abstraction will be: you can implement immediate-mode GUI, the Elm architecture, functional reactive GUI, etc, on top of Masonry.

This project was originally a fork of Druid that emerged from discussions I had with Raph Levien and Colin Rofls about what it would look like to turn Druid into a foundational library.

Example

The todo-list example looks like this:

…

As you can see, compared to crates like Druid or Iced, Masonry takes a fairly low-level approach to GUI: there is no complex reconciliation logic or dataflow going on behind the scenes; if you want to add a widget to the flex container, you call flex.add_child(your_widget).

This simplicity makes Masonry somewhat painful if you want to use it to actually build GUI applications. The hope is that, by being low-level and straightforward, developers can easily build GUI frameworks on top of it.

(Well, in theory. The first stress-test will be porting Panoramix, a React-style GUI in Rust, to Masonry.)

Unit tests

Masonry is designed to make unit tests easy to write, as if the test function were a mouse-and-keyboard user. Tests look like this:

…

Roadmap

The immediate next steps are:

  • Remove Env type and Data trait (#8)

  • Re-add Dialog feature (#25)

  • Switch to using Vello and Glazier (#24)

  • Refactor TextLayout (#23)

  • Rework Widget trait (#26)

  • Port Panoramix to Masonry

  • Port Xilem to Masonry

See ROADMAP.md and the issues page for more.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言