|Felix Rabe 937fb8a0f6 Typo||1 week ago|
|ci||1 month ago|
|druid-shell||1 week ago|
|examples||2 weeks ago|
|src||2 weeks ago|
|.azure-pipelines.yml||1 month ago|
|.gitignore||2 years ago|
|AUTHORS||8 months ago|
|CONTRIBUTING.md||9 months ago|
|Cargo.lock||2 weeks ago|
|Cargo.toml||2 weeks ago|
|LICENSE||2 years ago|
|README.md||8 months ago|
|rustfmt.toml||1 month ago|
Druid is a new Rust-native UI toolkit, still in early stages. Its main
goal is performance, also aiming for small binary size and compile time,
fast startup, and very easy build configuration (just
cargo run). It
is currently Windows-only, but with hope for porting.
The layout protocol is inspired by Flutter. It is originally being developed primarily for use by xi-win, but has the potential to be useful for other applications. Due to its focus on performance and the relative paucity of toolkit-provided components, it is more likely to be useful for games and music software than general-purpose GUI applications. It is currently used as the basis for Synthesizer IO.
The druid-win-shell layer is primarily an abstraction for displaying a window and receiving events. As such, it is an alternative to winit.
Ideally all Windows-specific logic (including all uses of
unsafe) are isolated
to the druid-win-shell subcrate, and druid proper is cross platform and with
no unsafe code. That is not entirely the case now.
This crate is currently in early stages. More features will be built out as needed for use in the flagship apps, and this will inevitably lead to API instability. Features hoped-for soon include:
The biggest single obstacle to porting is 2d graphics, as druid currently uses Direct2D (and DirectWrite for text). One way forward is to create a 2d graphics abstraction.
With a focus on 2D games, ggez also looks promising.
We gladly accept contributions via GitHub pull requests. Please see CONTRIBUTING.md for more details.
A very good place to ask questions and discuss development work is our Zulip chat instance, in the #druid channel.
The main author is Raph Levien.