rustup update
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
cargo +nightly build --target wasm32-unknown-unknown --release
wasm-gc target/wasm32-unknown-unknown/release/hello_world.wasm -o hello_world.gc.wasm
mchaver/rust-wasm-hello-world
Introductory example of interop between WebAssembly compiled Rust and JavaScript
Rust