I'm trying to build some webassembly rust applications on my raspberry pi (3b). Everything is going well, although I'm getting an error when running wasm-pack
~/rust/wasm-game-of-life $ wasm-pack build
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
Finished release [optimized] target(s) in 0.50s
[INFO]: Installing wasm-bindgen...
Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
It seems no wasm-opt
binaries are found for my (armv71) platform. But it seems easy enough to clone them from here and build them myself.
But my question is how to add them to webassembly, so that they are found?
edit: to be clear, the build completes 'successfully', i.e. I can run the package. However, I want to use the size or speed optimizations of wasm-opt