4 releases

0.2.0 May 7, 2024
0.1.2 Feb 5, 2023
0.1.1 Feb 5, 2023
0.1.0 Nov 30, 2022

#252 in GUI

Download history 5/week @ 2024-08-22 14/week @ 2024-08-29 5/week @ 2024-09-05 8/week @ 2024-09-12 26/week @ 2024-09-19 19/week @ 2024-09-26 17/week @ 2024-10-03 22/week @ 2024-10-10 16/week @ 2024-10-17 8/week @ 2024-10-24 16/week @ 2024-10-31 21/week @ 2024-11-07 69/week @ 2024-11-14 12/week @ 2024-11-21 10/week @ 2024-11-28 13/week @ 2024-12-05

108 downloads per month
Used in xilem

Apache-2.0

715KB
14K SLoC

Masonry

Foundational framework for Rust GUI libraries

Latest published version. Documentation build status. Apache 2.0 license.

Linebender Zulip chat. GitHub Actions CI status. Dependency staleness status.

Masonry gives you a platform to create a window (using winit as a backend) 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. See Xilem as an example of reactive UI built on top of Masonry.

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

Masonry can currently be considered to be in an alpha state. Lots of things need improvements, e.g. text input is janky and snapshot testing is not consistent across platforms.

Community

Discussion of Masonry development happens in the Linebender Zulip, specifically the #masonry stream. All public content can be read without logging in.

Contributions are welcome by pull request. The Rust code of conduct applies.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache 2.0 license, shall be licensed as noted in the License section, without any additional terms or conditions.

License

Licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)

Dependencies

~21–59MB
~1M SLoC