spidermonkey-wasm-rs
spidermonkey-wasm-rs copied to clipboard
spidermonkey-wasm-rs
A Bytecode Alliance project
Experimental Rust bindings and generic builtins for SpiderMonkey for the wasm32-wasi
target
Requirements
- cargo-wasi for testing
- Rust 1.57.0
- WASI-SDK 12 at /opt/wasi-sdk/wasi-sdk-12.0 (can be downloaded by executing
sudo ./update-wasi-sdk.sh
)
Development
-
git submodule update --recursive --init
to pull in spidermonkey-wasm-build -
cd crates/spidermonkey-wasm-sys/spidermonkey-wasm-build && ./download.sh
to pull in SpiderMonkey build artifacts - In
cd crates/spidermonkey-wasm
, run:-
cargo build
to build -
cargo wasi test
to run tests
-