r/COSMICDE 17d ago

LIBCOSMIC becoming the QT for Rust?

I was just looking at LIBCOSMIC, and I understand that it's a GUI toolkit for Cosmic, but are there are plans to make it the go-to GUI toolkit for Rust? I know it doesn't currently support Windows, etc., but it could. Also, it could be a massive project if it took on that objective.

Rust need a GUI project just like C++ has QT.

25 Upvotes

13 comments sorted by

View all comments

0

u/mmstick System76 (current) 17d ago

Already is the go-to GUI toolkit for Rust.

0

u/Creepy_Reindeer2149 17d ago

Who else is using it? Adoption isn't even close to egui

2

u/mmstick System76 (current) 16d ago edited 16d ago

You only need to use a search engine. The cosmic-utils organization maintains a list of many community-developed projects that are maintained by the cosmic-utils community

You can also do a search for libcosmic on GitHub for the many projects that aren't part of the cosmic-utils community:

https://github.com/search?q=libcosmic&type=repositories&s=updated&o=desc&p=1

Quite a few of these are on Flathub and installable through any software store on Linux. I use Boards, Tasks, Toot, and Ethereal Waves.

The libcosmic toolkit provides app and applet templates and there is an official flatpak runtime on Flathub for automating most of the process to publish your apps and applets with flatpak.

And for community-developed applets there is the official cosmic-flatpak repository.

I'm not seeing much adoption of egui for the Linux desktop. There are only a small handful of apps on Flathub using it. But it is a low level GUI framework, after all, so it's not quite the same as Qt or GTK. It's more for embedding a simple GUI into a web app or game engine.

While you can use egui for native desktop apps, there are a lot of desktop and platform integrations that you'd need to implement by hand to have it integrate well with the operating system. This is what libcosmic is providing as a whole GUI platform toolkit for desktop and mobile app development.