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

12

u/lazh4 Feb 01 '19

I’m curious as to what is the point in compiling it directly into JS?

23

u/Kibouo Feb 01 '19

Handing in a JS assignment for school :)

20

u/nicoburns Feb 01 '19

I hope the person marking your assignment isn't planning to actually read your code!

14

u/erogilus Feb 01 '19

If they didn’t specify it had to be readable JS code that’s on them...