Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument the WebAssembly story #14
Comments
This comment has been minimized.
This comment has been minimized.
lilianmoraru
commented
Nov 20, 2017
|
I created a basic example of stdweb + wasm32: https://github.com/lilianmoraru/stdweb-alert-example I did something wrong or the support is not great(stdweb or/and Rust + emscripten) but while trying to make |
This comment has been minimized.
This comment has been minimized.
@lilianmoraru Yes, the way you're using it isn't really supported (yet). Basically, Rust's Emscripten-based wasm target requires a hefty runtime which you can find in the Rust is going to have a native wasm target where it'll only generate a standalone |
This comment has been minimized.
This comment has been minimized.
CryZe
commented
Nov 20, 2017
|
Is it even possible to support the new target without some help of the compiler, as I don‘t see how you could do the JavaScript literals without the emscripten API or the compiler support for it |
This comment has been minimized.
This comment has been minimized.
|
Currently it might not be, but I see no reason why we wouldn't be able to work something out. (I'll add it myself if I have to.) |
This comment has been minimized.
This comment has been minimized.
emosenkis
commented
Nov 30, 2017
|
I believe that wasm32-unknown-unknown is now available from rustup on nightly. |
This comment has been minimized.
This comment has been minimized.
lilianmoraru
commented
Nov 30, 2017
|
@emosenkis stweb wasm32-unknown-unknown does not currently work with it because it requires an event loop that is available only inside the emscripten environment. |
This comment has been minimized.
This comment has been minimized.
|
Since WebAssembly is now supported on every target that Rust supports - closing! |
dgriffen commentedAug 14, 2017
•
edited
As far as I can tell this library currently does not support wasm. But since Rust now supports wasm on stable it would be useful if documentation existed somewhere detailing this libraries future plans for supporting wasm,
or if it already does and I missed that, there should be docs on how to use this library with wasm.Edit: After fiddling a bit, I have determined that at the very least the todomvc example can run under wasm. This just means that it is unclear if wasm is actually supported or if this is something that is not guarenteed to work going forward.