RustでWebAssembly
プロジェクトの構築手順
- nvmのインストール
nvm install --lts
でnpm
のインストールcargo install cargo-generate
cargo generate --git https://github.com/rustwasm/wasm-pack-template
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd <project name>
でプロジェクトに移動し,wasm-pack build
でビルドnpm init wasm-app www
プロジェクトの実行
wasm-pack build
cd www
npm run start