Has anyone done a ubiquitous web framework in Rust (or maybe actually Go) that is similar to Next.js in that it runs the same code (compiled to WebAssembly) on client and server?
1
If you find a good answer for Rust, I'd be interested. I've done some basic wasm UIs using Rust, and obviously done some purely server-side stuff; but never found anything which combined the two.
2
2
Best comparison list I can find is this one:
github.com/flosse/rust-web-fβ¦
Of which saruon, Dioxus and percy have both virtual DOM and SSR. And the first two of those have lots of commit activity at least.
2
1
Turns out yew has (experimental) SSR yew.rs/docs/next/advanced-to⦠- this stuff is all copying React/Next.js quite closely.
I was super surprised function-based components with hooks had been copied into yew! React idioms have a long reach.
So as a basic start, yew seems fine.
1
In turn, Dioxus is new and full of energy - aiming for native mobile support (prototype dioxuslabs.com/reference/mobβ¦) and SSR (via Axum dioxuslabs.com/reference/plaβ¦).
Ecosystem, company support, longevity are important. eg Yew doesn't have a list of companies yet: github.com/yewstack/yew/issuβ¦
1
I think that it will indeed take at least one large company backing it before a Rust stack will really close the gap. Dioxus is interesting looking though, so I'll put it on my list of things to consider next time I want to write a webapp.
May 23, 2022 Β· 3:14 PM UTC
1

