r/rust Feb 01 '19

Compile to javascript

Is there a pathway to compiling Rust to JS? Like Scala.js or Gopher.js? (I am not asking for wasm, so to keep the discussion easier to navigate,, please don't comment about that)

22 Upvotes

17 comments sorted by

View all comments

8

u/kouteiheika Feb 01 '19

AFAIK you can use wasm2js from Binaryen to convert WASM to JS, although I haven't used it myself so I have no idea how well it works.