Open1

Rust でWebAssemblyコンパイルを試す

sossos

モチベーション:
Rustでかなり高速に計算できるようになった数値計算処理をWebAssemblyで実行するとどの程度のパフォーマンスになるのか知りたい。

これを参考にすすめる
https://qiita.com/jp_ibis/items/3205b4799cb567f8ebf5

cargo install wasm-pack でエラーが出た。

error: failed to run custom build command for openssl-sys v0.9.72

同エラーについての解決策
https://stackoverflow.com/questions/68646684/cant-install-cargo-wasm-pack

これを試す

Fix Step #1: Use a pre-compiled wasm-pack binary on Windows.
If you do not want to compile either wasm-pack or OpenSSL, you can use the Windows installer (wasm-pack-init.exe) on the rustwasm downloads page. Alternatively, you could also run your wasm-pack builds in Windows Subsystem for Linux (WSL).

上記で wasm-pack は動くようになった。