/rust-wasm-cli

Run wasm on the command line

Primary LanguageRust

rust-wasm-cli

A WebAssembly executor that runs arbitrary waPC-compliant modules on the command line.

Usage

./wapc-runner <file-path> <operation> <json-path>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <file-path>    The WebAssembly file to load
    <operation>    The operation to invoke in the WASM file
    <json-path>    The path to the JSON data to use as input

Example

./wapc-runner ./crates/my-lib/tests/test.wasm hello hello.json

"Hello, there."

Credits

Project completed as part of the From Node to Rust series