4 ms·
Is there really that much to learn? You can just target WebAssembly like this: cargo +nightly build --target wasm32-unknown-unknown
by singularity2001 8y ago
Is there really that much to learn?
You can just target WebAssembly like this:
cargo +nightly build --target wasm32-unknown-unknown
- majewsky 8y agoOkay, 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.)
- v_lisivka 8y agoTry (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