Open1
Rust でWebAssemblyコンパイルを試す
モチベーション:
Rustでかなり高速に計算できるようになった数値計算処理をWebAssemblyで実行するとどの程度のパフォーマンスになるのか知りたい。
これを参考にすすめる
cargo install wasm-pack でエラーが出た。
error: failed to run custom build command for openssl-sys v0.9.72
同エラーについての解決策
これを試す
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 は動くようになった。