3 ms·
I want a Rust GUI framework or even entire app framework that can target desktop, mobile, and web, but I DON’T want to use web technologies other than when I am
by adastra22 2y ago
I want a Rust GUI framework or even entire app framework that can target desktop, mobile, and web, but I DON’T want to use web technologies other than when I am actually running within a browser. Is that Dioxus? I can’t tell the answer from what’s written here and in the comments.
- jvanderbot 2y agoNo. But what you want does exist to a certain extent. DX tries to be "rust only" but basically gives you a macro to write HTML-like components, which are obviously just a shim between layers and the abstraction is leaky. You don't get much from that. You probably want egui.rs
- adastra22 2y agoI want native widgets.
- jkelleyrtp 2y agoIf you don't want to use web technologies but still benefit from the non-web parts of the ecosystem (SDK, hooks, build tools) there's Freya. The creator is a wonderful guy and has put a lot of great work into making a nice Skia-based renderer for Dioxus. https://freyaui.dev https://freyaui.dev WRT the other comment - `rsx!{}` is carefully designed to not leak details about the web. RSX is entirely abstract over the element+listener set so you can build whatever you want with it.
- adastra22 2y agoThat seems like more of the same? rsx!{} basically presents a web view API, with CSS-driven layout (or something approximating that). I'm looking for a native widget library that can compile to web technologies when running in the browser, but otherwise uses native widgets.