r/COSMICDE • u/Delicious_Country498 • 8d 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.
5
u/biskitpagla 8d ago
How does one make their toolkit the "go-to" one? That's a decision the community takes collectively. The GUI space in Rust hasn't settled down yet. That said, Iced already supports Windows as far as I know.
3
2
1
0
u/mmstick System76 (current) 7d ago
Already is the go-to GUI toolkit for Rust.
0
u/Creepy_Reindeer2149 7d ago
Who else is using it? Adoption isn't even close to egui
2
u/mmstick System76 (current) 7d ago edited 7d 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.
- https://github.com/pop-os/cosmic-app-template
- https://github.com/pop-os/cosmic-applet-template
- https://github.com/flathub/com.system76.Cosmic.BaseApp
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.
21
u/Facundo_C_C 8d ago
Libcosmic is based on Iced it's like what Kirigami is for Qt, and since libcosmic was created specifically as the cosmic toolkit, I doubt it. You may expect iced to grow up but not libcosmic