Rust
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
As long as you store state in your application's struct so that there's no need to calculate and allocate in the view, then the view is quick to generate. You can also use lazy widgets that will avoid being re-recreated unless a given input has changed. Have you benchmarked to compare? You'd be surprised how efficient it is compared to heavier frameworks like GTK.
Have you looked at Bevy before? There is a popular Rust YouTuber that posts videos of his Bevy projects. Definitely look there for inspiration.
Bevy is awesome, but I don't think it's really designed to be used as a retained-mode UI framework. I know it's on their roadmap to support traditional UIs (or at least was at one point), but as it is right now, it's primarily useful for making games which require regular re-renders of the entire screen.
Care to say who they are?
Tantandev
The main issue I've come across experimenting with Rust UI frameworks is that none of them seem to have a decent multiline / rich text field story. Iced and the like are nice for simple apps but if you need to e.g. input Markdown and render it nicely all in one field you're out in the wilderness.
That's been resolved by cosmic-text, which is being used by iced now. The cosmic-text crate provides a text editing widget, too.