3 ms·
Cool to see more people digging into Rust + Emscripten. Not sure why the guide is using nightly Rust, stable has worked pretty well on Emscripten for a while.
by vvanders 9y ago
Cool to see more people digging into Rust + Emscripten.
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.
- steveklabnik 9y agoIt'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 https://github.com/rust-lang/rust/pull/42571
- ianjsikes 9y agoHi, author here. Thanks for the tip, I wasn't aware compiling with Emscripten would work on stable. That should simplify the process. I'll do some more research and update the guide.
- vvanders 9y agoYeah, was a great article, kudos for that. To be clear I didn't mean it as a criticism just wanted to throw it out there so other people knew that it works on stable.