This is a simple project to test WebAssembly (WASM) technology. This project is a simple "Hello World" written in Rust and compiled with WASM using wasm-pack.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
...
source $HOME/.cargo/env
https://www.rust-lang.org/tools/install
cargo install wasm-pack
This is the Rust project that will be compiled to WASM. It is a simple "Hello World" project. command to create the project:
cd path/to/your/project
wasm-pack new hello-wasm
wasm-pack build --target web
cd new_version
run index.html with http-server or Live Server
The Internet and official documentaion use webpack. However, this currently causes many compatibility issues. Therefore, I recommend using the
new_version
method.
cd old_version
npm install
npm run start