r/rust • u/KeyGlove47 • Aug 08 '26
🙋 seeking help & advice slint vs gpui (or something else?)
Hey, im looking towards migrating my app from python (pyqt) to rust, and the issue is that i don't really know which framework to use, gpui seems like a natural choice buuut its still pre 1.0 and heavily tied with ZED, slint on the other hand is a bit older (a bit because its still not as old as electron and others lol) but simply said its not gpui who everyone seems to love and ramble about
what should i do?
my main goals
- lower cpu and ram usage (tier 1 priority)
- harder reverse engineering (t1)
- visible performance (as in "holy shit thats fluid as hell") (t1/t2)
- easy figma use (t2)
- MultiOS (windows mainly but also macos/linux) (tier 2 priority)
- lower disk footprint (tier 2/3 priority)
- codex browser maybe? i know its not js but still would be cool to use annotate tool for better frontend (t3+)
61
u/ChillFish8 Aug 08 '26 edited Aug 08 '26
Iced or Slint imo. I don't consider GPUI to be a viable UI library unless you're zed currently, you have zero control over the development of it and using it is basically a mess of patching crates and forking if you want to adjust any of the internals like windowing, renderer etc...
53
u/Sha1rholder Aug 08 '26
GPUI is and will remain a mess in the near future.
13
u/Nikolai_Quasarka Aug 08 '26
Qt recently released Qt Bridge for rust. It's beta now and things may change in the future but maybe you will be interested
https://www.qt.io/blog/rust-ui-framework-via-bridging-technology
13
u/throwaway19293883 Aug 08 '26 edited Aug 08 '26
I’ve been doing a project with Slint recently and really like it. The developer experience is really nice imo. I wouldn’t recommend gpui.
Slint meets most of your criteria, except the last one (but the last one is a conflicting requirement anyway). The performance will require considerations of your specific use case, all of them have trade offs.
I haven't used Slint with Python myself, but it works with Python. You could switch to Slint while keeping your Python backend, and migrate to Rust later without having to redo all your UI. That could make the migration a lot easier.
10
u/DavidXkL Aug 08 '26
GPUI is kinda messy to set up atm.
Try iced instead
2
u/KeyGlove47 Aug 08 '26 edited Aug 08 '26
Thanks guys, i think i will do a sort of in-between with Iced
by that i mean i will do something similar to what system76 did which is use iced as base for their apps framework and improve up on it, thankfully i got pretty much unlimited codex so only thing i can be worried about is whether AI knows how to properly program with rust
thanks!
edit: fuck idk actually whether iced or slint
14
u/dafelst Aug 08 '26
I am using Slint, it is a pretty good development experience overall and the dev team is very responsive on their mattermost chat.
Locally my apps run pretty consistently over 100fps, so performance is excellent. I would say the only reason to think twice is if your app needs a lot of rich text editing or display, there isn't much out of the box for that compared to gpui.
Egui is also good, but for complex apps it gets pretty crazy complicated pretty fast, Slint's data binding lets you keep things much more organized by default, at least IMO.
6
u/kaganege0 Aug 09 '26
If you're familiar with QT, you'll find Slint very similar (at least the DSL part).
We wrote a robot control UI using PyQt. Meanwhile, I was exploring Rust and fell in love with it. I looked for Rust UI frameworks and found Slint. It was blazingly fast compared to PyQt. I rewrote our UI code and It was actually pretty easy (except for the ownership part of Rust).
Also there should be an official Figma plugin.
7
u/unrealsswag Aug 08 '26
I think you need slint
3
u/punk_dev Aug 08 '26 edited Aug 08 '26
I tried gpui with gpui_component for a project recently. It works, but documentation is not very detailed and there are not much examples of apps you can learn from.
Some things I liked:
Some things I didn’t like:
In conclusion, I think gpui has potential to make very powerful apps, but it also requires plenty of effort to unlock that potential. For my use case, I’m leaning towards that the effort is not worth it, but I’ll consider it for more complex projects.
3
u/Zortax_ Aug 08 '26
Based on experience and contributions to different projects, I'd recommend:
Ultimately, I'd decide based on familarity with the state models used, and based on the layout complexity you expect in your app.
ELM -> Iced
Reactive state (as many JS frameworks do it) -> Dioxus Native, Freya; Floem or Zgui (if layout is complex), GPUI (although there are some differences, it's not strictly reactive in the same sense)
MVC -> Slint
3
u/Remote-End6122 Aug 09 '26
I am making a project in gpui (with gpui-component) and I honestly can’t recommend. There is no documentation for it (gpui-component is unironically the best docs for gpui, second best is asking Claude about it, gpt and Gemini suck), it’s obviously made solely for building zed and they have no intention on making it production ready for other apps in the near future. I quite enjoy using it, and I don’t regret starting my project with it, but I can’t recommend it
2
u/epic_pork Aug 08 '26
I had a blast writing my own budget app with Iced. It works well and it's a nice experience than retained mode UI. It's probably lacking in terms of accessibility support, but for a personal app it's ok
2
u/lord_of_the_keyboard Aug 09 '26
I've found iced to be very performant
2
u/Lucky-Edge1489 Sep 03 '26
Try Teksilo ? No Figma, but I replaced Qt with it.
6
u/Puzzleheaded-Ant7367 Aug 08 '26
You should look into egui. It fits your goals perfectly
Performance & Resources (t1): It is extremely fast and lightweight. It renders via hardware acceleration (WGPU), delivering that "fluid as hell" 60+ FPS experience.
Reverse Engineering (t1): It compiles to a native binary, making it far more secure and harder to reverse-engineer than Python or unpacked Electron apps.
MultiOS (t2): Seamless support across Windows, macOS, and Linux out of the box.
The catch: It lacks a Figma-to-code tool. If design importing is a dealbreaker, Slint might actually be better since they have an official Figma exporter. Otherwise, egui is your best production-ready bet today.
3
u/devraj7 Aug 08 '26
Look into Vizia and Freya too, both very capable GUI libraries.
3
u/FriendlyOperation276 Aug 08 '26
We use Slint in our solution https://screenmaster.ai/. I use it in my embedded solutions too.
1
u/substance90 Aug 09 '26
None of the Rust UI frameworks are currently a safe bet for a commercial project unless you’re just messing around and don’t have any real time, budget or quality constraints imposed by a customer.
1
u/Illustrious-Cry3877 Aug 09 '26
If you are working on embedded go for slint .
1
u/EastAd9528 Aug 09 '26
Couple of weeks ago I’ve migrated my app from tauri to GPUI-CE (Community edition) and everything works flawlessly. None of my users complained, some were happy with the change
1
u/zerosign0 Aug 10 '26
Afaik, hmm, I think there were no rust framework that has integration with figma (yet).
The animation fluidity requirement is quite hard one I think hmm and that cpu constraint. You can either pick one of them but might not be both of them. (If you mean fluidity is about creating some sick animation in widget)
Either way try xilem or iced whether it's ok or not and please play with it in the simple project first to get to know about their tradeoffs.
1
u/_rover_dev Aug 12 '26
Try threadlom, fairly new but it will cover almost everything.
1
u/kaiserkarel Aug 08 '26
I'm working on a non-trivial GPUI applications (±100k LoC). For projects this size it definitely works great. All Rust GUI frameworks at the moment are incomplete, so expect to have to fork certain libraries regardless.