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
Replying to @frabcus
Oh interesting, I don't think they had any SSR when I was using it.

May 23, 2022 Β· 2:58 PM UTC

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.
1