Re:Get Started with Rust, WebAssembly, and Webpack
by steveklabnik on Tuesday June 27, 2017 @12:18PM
(#14646760)
It's in a bit of a transition; we're planning on using LLVM's backed for wasm, and I believe that's landed in nightly[1]. Stable has support but through emscripten's LLVM patches. So maybe they wanted to try out the new stuff, or maybe they didn't know that it was on stable already.
1: EDIT: looks like it https://github.com/rust-lang/rust/pull/42571
Not sure why the guide is using nightly Rust, stable has worked pretty well on Emscripten for a while. If you need to pass custom linker flags(which emscripten sometimes requires) you can do it via rustflag directive in .cargo/config.
We've been using Rust + Emscripten for some cross-platfrom targets(web, win32, osx, android and linux) and been pleasantly surprised with how straightforward+stable it's been.