1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # Build the optimized WebAssembly library. set -euo pipefail REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" cd "$REPO_ROOT" source scripts/wasm32/_env RUSTFLAGS="$WASM32_RUSTFLAGS" cargo +nightly build \ --release \ --target wasm32-unknown-unknown \ "$@"