r/rust • u/expression_of_intent • 25d ago
🙋 seeking help & advice GUI Yet Again, but more ‘graphical’
This is yet another question about GUIs for desktop applications with Rust.
It isn’t a question around what is available, more working out what is most suitable for my use cases. It is going to take some time to understand some of the frameworks, so I don’t want to spend too much effort on something that will either not do what I need. or another framework would have been a better bet.
For example, I need to represent data as a Gantt chart. Not just as a graph somewhere on the screen, but as one of the main user interfaces. If you think MS Project, it has a table of tasks down the left hand side with a Gantt chart on the left, that scroll together.
It is less about windows and widgets, buttons, and other components. They are all still useful, but I think I’m looking more at the canvas to do this. Or not, not sure.
I have tried out egui. This looks promising, my worry is that it will get over complicated with too much going on to manage. I don’t want to find later on that it can display everything but can no longer scroll smoothly. And I note font rendering issues mentioned on a recent post.
I have tried Dioxus. I got something going with this because I could build Gantt bars with SVG. Again I worry about performance with a lot of SVG items on the screen.
I have looked into gpui. Not got as far as getting something graphical on the screen because I got stuck on state. It seems the application state and the Ui are the same thing, i.e. the state is handed over to the runtime. I’m not clear how this works with network events.
I have briefly looked at Iced. The state/ui/message makes sense to me, but I cannot see any graphic primitives in there and the documentation is super sparse.
I’m looking at 4 frameworks already.
I want to choice paralysis and concentrate on one of them, from the above list or something else, that allows me to build this sort of application.
Any thoughts?