Any solution to write HTML5 games in rust?


#1

Hey Rustaceans,

I find myself wanting to write a board game in Rust, for the fun of it. Of course, that game would be much more usable if it could be deployed as HTML5. Has someone already developed a toolchain that would let me do this without hassle?

Cheers


#2

There is some effort to get Rust working out-of-the-box with Emscripten, unfortunately it’s still a bit of a hassle: https://github.com/rust-lang/rfcs/issues/604

There are some proof-of-concepts online already, the most notable one probably being a pure-Rust minecraft clone running in the browser (only seems to load properly in Firefox?): http://myth.aaronlindsay.com/test/