最近流行りの(大分昔・・・)WebAssemblyをRustで実装してみた 参考は下記URLです。 https://developer.mozilla.org/ja/docs/WebAssembly/Rust_to_wasm
$ npm adduser
Username: <NPM_USER_NAME>
Password:
Email: (this IS public) <NPM_USER_MAIL>
$ git clone https://github.com/doberan/sample_webassembly.git
$ cd ./sample_webassembly
$ cargo install wasm-pack
$ wasm-pack build --scope <NPM_USER_NAME>
$ cd pkg
$ npm publish --access=public
※下記リポジトリ内package.json, index.jsの@<NPM_USER_NAME>は書き換える必要がある
$ cd ../../
$ git clone https://github.com/doberan/sample_webassembly_alert.git
$ cd ./sample_webassembly_alert
$ npm install
$ npm run serve