Crates.io | masonry |
lib.rs | masonry |
version | 0.2.0 |
source | src |
created_at | 2022-11-30 04:57:11.158628 |
updated_at | 2024-05-07 21:34:47.231565 |
description | Data-oriented Rust UI design toolkit. |
homepage | https://xilem.dev/ |
repository | https://github.com/linebender/xilem |
max_upload_size | |
id | 725908 |
size | 1,254,186 |
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.
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.
Licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)