Is there documentation on Rust+WebAssembly that is presented more like a conventional book or tutorial?
I don't do well with example-driven documentation like these. Resources like the original rust book are excellent though.
I don't do well with example-driven documentation like these. Resources like the original rust book are excellent though.
Here's one guide: https://hackernoon.com/compiling-rust-to-webassembly-guide-4...
You can just target WebAssembly like this:
cargo +nightly build --target wasm32-unknown-unknown
# 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