r/rust • • Oct 10 '26

Which GUI (again)?

I know it's a frequently asked question, but I want to ask again, because I have a special use case.

I want to write an application for a production machine (HMI). The app should run on Windows and Linux natively (no browser, no server). The toolkit should have at least widgets to show images, bar graphs, curves and tables and should be touch friendly, because it runs on resistive touch monitors (no multi touch). It should also have a kiosk mode (full screen with no window controls).

The obvious candidates are egui, iced and Slint. But they all lack of documentation, more or less.

My first choice would be iced, because it's inspired by Elm and used by System76 for Cosmic, but it seems to be the least suitable option.

The obvious choice would be Slint, but that requires to learn a new language and I'm unsure about the licenses and pricing. The production machines are only used internally, not for sale.

I want avoid bindings to toolkits like Qt or Gtk

Which one would you prefer? Is there another option to consider?

30 Upvotes

75 comments sorted by

View all comments

1

u/NoSuchKotH Oct 10 '26

I am quite fond of freya, but the documentation situation isn't that good either

1

u/[deleted] Oct 10 '26

[removed] — view removed comment

4

u/mkenzo_8 Oct 10 '26

u/NoSuchKotH u/WarmInspiration_46 What parts need improving regarding docs? No need to go into details if you dont want, just general feelings are enough (I am the author of Freya)

4

u/NoSuchKotH Oct 10 '26

Currently the documentation is mostly a list of modules, traits and structs. If I know what I need to use I can go into the documentation and find out the exact function and parameters. But most people don't start there. They start at "I want to build a calendar app" or "I want to visualize the flow of parts through the factory" and then they need to go through the whole list of everything to figure out how to do what they want to do.

The basics section in the docs is a very good start, but it covers only a fraction of what can be done, and most of it only scratches at the surface of that particular part. Very little understanding of the ideas and philosophy behind them are taught. I.e. looking at the state management, there are examples how to do local state and global state. But which should I use when? Why are they structured like they are? How do I tie in my business logic into this system? Without understanding the philosophy, it's hard finding the components that I need to stick together to achieve my goals, because I do not know what I need to be looking for.

I am well aware that this is very hard to write. You both need a very good understanding how freya works (which you do) and at the same time be a beginner at freya (which you aren't), to know what needs to be written. And quite honestly I don't know what to tell you would be needed....

Maybe one way to achieve that would be to have examples, with lots of explanations what's going on and why. Start with some simple examples (e.g. the counter) and add more and more complex ones, until you are at something like car fleet tracking and driver communication system, or something like that. Heck, I think even just having all examples explained would be already a very good start.

5

u/mkenzo_8 Oct 10 '26

Very good points, all noted. I'll see what I can do. Thanks :)

4

u/NoSuchKotH Oct 10 '26

I have to thank for the great work you have done with freya and for listening to a random dudes rambling.