@ 260802.2

230716.2 · 89208494411370a6fae68922fc021f655e5c916a

bin: add script for setting up a wasm test environment

It appears to work via wasmtime. On Archlinux, this requires installing the `wasmtime` package.

reading declarations

bin/wasmenv

new file mode 100755@@ -0,0 +1,17 @@+#!/bin/sh++# This script is meant to be sourced, like so:+#+#   . wasmenv+#+# It will set various environment variables that make it possible to run and+# test WASM targets for Rust. (I got these steps from memchr's CI for doing the+# same, and that was contributed by Alex Crichton.)+#+# Note that this requires that the `wasm32-wasi` target is installed. i.e.,+#+#   rustup target add wasm32-wasi++export CARGO_BUILD_TARGET=wasm32-wasi+export RUSTFLAGS=-Ctarget-feature=+simd128+export CARGO_TARGET_WASM32_WASI_RUNNER="wasmtime run --wasm-features simd --"