Running Rust in the browser may seem like a similar task to using Rust binaries with Node.js. However, the modern browser environment is exceedingly more difficult. Sandboxing limits access to local resources (which is a good thing!) and browsers provide a small number of scripting languages to run within the website. While the most successful language is JavaScript, it comes with many drawbacks in the area of animation, caused by the scripting nature of the technology. On top of that, there is garbage collection, a type system with many flaws, and the lack of a coherent programming paradigm—all of which manifests itself in unpredictable and poor performance for real-time applications such as games.
However, these issues are being resolved. A technology called WebAssembly has been introduced to be able to distribute binaries (as an assembler...