javy
A configurable JavaScript runtime for WebAssembly.
Uses QuickJS through the quickjs-wasm-rs crate to evalulate JavaScript source code or QuickJS bytecode.
Example usage
use ;
use ;
Create a Runtime and use the reference returned by context() to add functions and evaluate source code.
Features
export_alloc_fns- exportscanonical_abi_reallocandcanonical_abi_freefrom generated WebAssembly for allocating and freeing memoryjson- transcoding functions for converting betweenJSValueRefand JSONmessagepack- transcoding functions for converting betweenJSValueRefand MessagePack
Publishing to crates.io
To publish this crate to crates.io, run ./publish.sh.
Using a custom WASI SDK
This crate can be compiled using a custom WASI SDK. When building this crate, set the QUICKJS_WASM_SYS_WASI_SDK_PATH environment variable to the absolute path where you installed the SDK.