I wondering if anybody that can recommend a crate to make a basic GUI for a scientific application (it can look bad - researchers just need to be able to input parameters into the interface). I'm curious if anybody has any ideas for a crate that would be ideal for this application - there seems to be a lot of them out there.
Thanks
Tom
I would recommend egui for writing quick-and-dirty GUI interfaces.
I would recommend iced, especially if you don't need the permanent re-rendering that egui
does.
You could also try Tauri, it's a fair bit of setup on the developer side wiring up commands and understanding how to use Tauri. But it is quite fun
Once you do, it's dead simple to make an ugly GUI that's just a html form sending arguments to your rust backend. CSS styling optional, only a small amount of vanilla js (no npm required)
I can recommend crates.io: Rust Package Registry.
I have used Gtk-rs. It works okay and would get the job done but not the best choice.
I can really recommend Tauri. It works amazing and easy to understand. In my opinion a lot of GUI-frameworks have a really weird flow to handle events etc and take a lot of effort to style it nice.
Tauri uses HTML and CSS for the front-end, making it really easy to make a nice looking interface. It uses Javascript to listen for events like clicking a button and invokes your functions in Rust.
It has a MVC-like feeling. Really intuitive.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.