Files
tlsn/crates/wasm-test-runner/run.sh
2025-06-03 22:38:54 +02:00

10 lines
472 B
Bash
Executable File

#!/bin/sh
# Ensure the script runs in the folder that contains this script
cd "$(dirname "$0")"
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals -C link-arg=--max-memory=4294967296 --cfg getrandom_backend="wasm_js"' \
rustup run nightly \
wasm-pack build ../wasm --release --target web --no-pack --out-dir=../wasm-test-runner/static/generated -- -Zbuild-std=panic_abort,std --features test,no-bundler &&
RUST_LOG=debug cargo run --release