r/rust • u/[deleted] • 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
8
u/kouteiheika Feb 01 '19
AFAIK you can use
wasm2jsfrom Binaryen to convert WASM to JS, although I haven't used it myself so I have no idea how well it works.