UPDATE 08/2018: Binaryen no longer supports s2wasm and the official "wasm32-unknown-unknown-wasm"target is now stable enough to use via llc and lld. See the footnotes for more info. To be clear, this article is intended for people who are writing their own compiler in Rust and want to use LLVM as their backend. If you’re looking for compiling the Rust language itself to WebAssembly, check out the
![Using LLVM from Rust to generate WebAssembly binaries](https://cdn-ak-scissors.b.st-hatena.com/image/square/5f99f34d6ff44e422b4eac545ec2e4714155d5b7/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1200%2F1%2AjTSw9Uf2Qk9I6OuyaG7tEA.png)