this post was submitted on 02 Oct 2022
1 points (100.0% liked)

Rust Programming

8134 readers
4 users here now

founded 5 years ago
MODERATORS
 

The UX team has been carefully designing widgets and applications over the last year. We are now at the point where it is critical for the engineering team to decide upon a GUI toolkit for COSMIC. After much deliberation and experimentation over the last year, the engineering team has decided to use Iced instead of GTK.

Iced is a native Rust GUI toolkit that's made enough progress lately to become viable for use in COSMIC. Various COSMIC applets have already been written in both GTK and Iced for comparison. The latest development versions of Iced have an API that's very flexible, expressive, and intuitive compared to GTK. It feels very natural in Rust, and anyone familiar with Elm will appreciate its design.

The main jumping-off point for COSMIC is this repository, I think: https://github.com/pop-os/cosmic-epoch

The iced crate is here: https://github.com/iced-rs/iced

Other GUI tookits for Rust can be found here: https://www.areweguiyet.com/

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Yujiri@lemmy.ml 1 points 2 years ago (1 children)

Seems like a really bad idea to build a desktop using a toolkit that doesn't support selection, accessibility tools, non-Latin text, etc.

[โ€“] jokeyrhyme@lemmy.ml 1 points 2 years ago

True, although they whipped up https://github.com/pop-os/cosmic-text in a shockingly small amount of time, so it's possible that they check these boxes quite quickly

For comparison, egui (another pure-Rust cross-platform GUI toolkit) just recently got accessibility support, but that feature only works in Windows and macOS: https://github.com/emilk/egui/pull/2294

I think we're in an interesting intersection of Rust ecosystem, wayland upheaval, and Pop! OS rewrite, which is a lot going on and I'm keen to see how it turns out :)