5 ms·
As far as I know, you can't yet compile Rust to Javascript. I don't see why not--Rust uses LLVM as a backend, and LLVM bytecode can compile to Javascript with
by kyllo 12y ago
As far as I know, you can't yet compile Rust to Javascript.
I don't see why not--Rust uses LLVM as a backend, and LLVM bytecode can compile to Javascript with emscripten.
Although, I don't really see why you would want to, either.
- vmind 12y agoRust relies on a newer version of LLVM than Emscripten is based on (as Emscripten-fastcomp is based on the PNaCl fork of LLVM, which is lagging behind). Once the PNaCl fork is updated and Emscipten rebases, or they rebase onto LLVM proper, then it should be doable fairly easily.
- kyllo 12y agoI see. Thanks for clarifying!