WebAssembly Project with Rust and wasm-pack
This document is a note for myself to how to initialize a WebAssembly project with Rust and wasm-pack. Used Tools wasm-pack: For building and packaging Rust code as a WASM module. Steps First of all, we need to install the required wasm-pack following the official guide. Then, we can create a new Rust lib project with wasm-pack: wasm-pack new my-project The project structure is almost the same as a normal Rust project....