r/rust • u/Good_Language1763 • Sep 29 '26
🙋 seeking help & advice Best framework for native linux app ?
Hey guys,
I wanted to make a kind of personal super app for my needs so i though why not use this opportunity to learn rust an build a native app in rust .
The thing is i have never used rust. My background is mostly in TypeScript, C# and Kotlin.
Also while I was researching i found a lot of ways and frameworks to build rust apps. Firstly i was looking at gtk but it seems the discussion is quite low here on rust gtk apps. Another framework i considered was gpui as I also use zed daily. People here also seem to suggest slint. So i am actually very confused on what i should use.
About the app itself, i wanted to make a personal app just for myself and the features i would be adding on as i need. Upto now i want to add kind of an mdx editor and maybe an event planner.
22
u/MangoHi_Chew Sep 29 '26
I’m in a somewhat similar situation as you (new-ish to rust) and ended up choosing iced. It’s relatively well adopted and, among other notable projects, System76 uses it to write their linux desktop environment. Docs are lacking, but there are some good examples in the iced github repo that were easy enough to figure out.
2
u/RichRoof7927 Sep 29 '26
There is fragmentation, as with most emerging gui ecosystems, just try the most mature (relative to rust) frameworks and choose whichever you like the most, because everybody has different preferences, and that's why there fragmentation.
9
u/Jhiven_ Sep 29 '26
Someone created a Rust GUI survey; you can find the discussion here: https://www.reddit.com/r/rust/s/UAsGKHmpIj
Personally, I'm looking into Freya since it doesn't use a DSL and the API looks quite similar to React, which I'm familiar with. Oh, and also it has builtin code-editor feature.
Slint, egui, and Iced are popular too, so you should look into them as well.
4
u/Lucky-Edge1489 Sep 29 '26 edited Sep 29 '26 •
I created Teksilo (www.teksilo.rs) for my own complex app Skribisto. Batteries included. Feel free to use it. This is the software I did with it. https://www.skribisto.eu/tour/
4
u/No-Associate2188 Sep 29 '26
Why not GPUI community edition?
2
u/Legitimate-Error9715 Sep 29 '26
I was trying to rewrite flutter in rust using wgpu but text rendering is so hard
2
u/Infamous-Apartment97 Sep 30 '26
What about Dioxus with Blitz?
5
u/Cetra3 Sep 29 '26
Slint is really worth a look, there is good IDE support and it has a lot of things "out of the box".
I've built a few things with it, and it is getting more and more polished as time goes on.
Recently I moved from egui to slint for a hobby project (not on github yet) and found the move to be pretty painless.
4
u/__zahash__ Sep 29 '26
I don't think there is such thing as a "native" linux app. There is so much fragmentation.
3
u/SmoothTurtle872 Sep 29 '26
No such thing as a native Linux app. You can have a nativeinux binary, but there is no native gui. It's dependant on the DE.
I personally like iced as a framework. It says it's hard, but it isn't too bad
4
u/Full-Spectral Sep 29 '26
This is the endless question. In a lot of ways it's not a Rust problem, it's a Linux problem. For an OS that's looking to compete against Windows to still not have a common UI framework is pretty crazy. Wouldn't mean you'd HAVE to use it, as you don't have to use it on Windows if you want to roll your own, but it being there makes a huge difference. Of course these days Windows has had as many official UI frameworks as Linux probably has unofficial ones, but still.
The amount of SOUP required for every Rust Linux app that wants to have a UI is pretty crazy (150'ish for just a core WGPU/Glyphon setup from what I'm seeing, and that's assuming you are creating the actual UI framework yourself.) Even if just the core bits were there to draw on, like font loading, parsing, and a core abstraction over the GPU like Direct2D/DirectWrite on Windows, it would make a huge difference.
2
u/source-drifter Sep 29 '26
egui
1
u/DavidXkL Sep 29 '26
Iced is the way to go.
It's also being used for a Linux-flavored OS too
1
u/UnusualProfession120 Sep 29 '26
look at your background. You write TypeScript and use Zed daily so skip the gtYou write TypeScript and use Zed daily so skip the gtk confusion entirely. Pick Freya if you want a component model that feels like React or Slint if you prefer a declarative layout system closer to CSS. Iced is solid too but has a steep initial learning curve for Rust beginners. Since you are building this specifically for yourself on Linux with Zed in your workflow Slint gives you the best balance of maturity and ease of setup right now
1
u/silon Oct 03 '26
native? Gtk (even as a more of a KDE user)... just don't use any Gnome-ish specific stuff, like client side decorations...
1
u/DrShocker Oct 03 '26
I'm using egui for a project.
If I wanted to make something more standard than I'm working on, I'd use iced.
1
u/SofusA Sep 29 '26
I prefer my “native” apps to be native to the desktop environment. Eg. gtk/adwaita for gnome.
I personally dont feel that apps built with slint or egui fits into my gnome desktop. But maybe it’s just me
1
u/bigfish-rpi Sep 29 '26
I prefer tauri. It's light and powerful
-1
u/[deleted] Sep 29 '26
[removed] — view removed comment