Re:Emerging Rust GUI libraries in a WASM world
by echelon on Thursday April 27, 2023 @03:24AM
(#35724445)
For this there's Leptos and a half dozen other "DOM in Rust" frontend frameworks:
https://github.com/leptos-rs/leptos
These are already orders of magnitude faster than React, and as the WASM<->DOM bridge improves, they will only get faster.
Sycamore:
https://github.com/sycamore-rs/sycamore
https://sycamore-rs.netlify.app/examples/todomvc/#
Dioxus:
In about 3-5 years these frameworks will start to consolidate and reach maturity.
It's already possible to build reactive isomorphic apps in Rust.
If you haven't checked out Actix/Axum, it feels a lot like Python/Flask. The ecosystem is coming along quickly.
Re:Emerging Rust GUI libraries in a WASM world
by bschwindHN on Thursday April 27, 2023 @03:51AM
(#35724640)
Yep, my current favorites are Axum and Dioxus for web things (and some desktop apps too).
It's certainly nice to work with from a developer's perspective, what could be easier than
?But it's quite a pain to style if you're particular about typography and pixel-perfect layouts. Between styling an egui app and styling something with CSS (or some flexbox/grid system), I'll take CSS every time.
Still looking forward to how Xilem turns out, and what people build on top of that.