Re:WebAssembly Threads ready to try in Chrome 70
by majewsky on Tuesday October 30, 2018 @05:06AM
(#18334903)
Okay, then how do I run that? How do I interface with the JS/DOM world? (Those are rhetorical questions. I just mean to show that there is, in fact, more to learn.)
Re:WebAssembly Threads ready to try in Chrome 70
by v_lisivka on Tuesday October 30, 2018 @11:32AM
(#18337554)
Try (after installing of rust and cargo via rustup):
# Install support for "wasm" command for cargo:
cargo install cargo-wasm
# Install wasm target and wasm-gc tool:
cargo wasm setup
# Create new wasm project:
cargo wasm new hello_world
and then in hello_world directory: # Build and run wasm project:
cargo wasm run
You can just target WebAssembly like this:
cargo +nightly build --target wasm32-unknown-unknown