

The GUI frameworks that OP mentions, Dioxus and Leptos, use WebAssembly under the hood.
Was interesting to skim through that article, though. I’ve been building WebAssembly GUIs for 3 years now and I’m only superficially aware of the described steps, because the frameworks abstract all that gubbins away for you. 😅
Have you considered just rewriting the cryptography parts in Rust and calling those from JavaScript? In the projects I’ve seen so far, it was always possible to move the cryptography stuff into a standalone library.
And then with a WebAssembly wrapper, you could call that from JS: https://opensource.com/article/19/3/calling-rust-javascript
Don’t get me wrong, I’m a big fan of Rust. I also think the WebAssembly GUI frameworks are cool. But at this point in time, I’d say they’re cool for people who don’t want to write JS.
If you’re happy with JS, then the ecosystem of web component libraries will very likely make you more productive than you’ll be with Dioxus or Leptos.