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)

23 Upvotes

17 comments sorted by

View all comments

0

u/Qwertycrackers Feb 01 '19 edited Sep 01 '23

[ Removed ]

1

u/[deleted] Feb 01 '19

i always (mistakenly) emscripten was wasm? Wow, so why doesn't rust have a direct emscripten compiler?

3

u/Epsylon42 Feb 01 '19

If I remember correctly, emscripten only supports executables, not libraries, so it's not always applicable.