[Rust] Setup Rust for WebAssembly
In order to setup a project we need to install the nightly build of Rust and add the WebAssembly target. For an improved workflow we also install the CLI tools wasm-pack and wasm-gc. Install: brew install rustup Run: rustup-init Setup nightly toolchain as default. rustup default nightly Then we add the target wasm32-unknown-unknown rustup target add wasm32-unknown-unknown In addition, we use cargo , Rust's package manager, to install wasm-pack cargo install wasm-pack This tool seeks to be the one-stop shop for building and working with Rust-generated WebAssembly that you would like to interop