Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History

wasmtime-wrapper-lib

Folders and files

README.md

wasmtime-wrapper-lib

Our wrapper Rust library for wasmtime.
This library only expose one function in order to make it much easier to interact with PHP's broken parser. It accepts .wat, .wasm and precompiled .cwasm files.

Run our code

  • Install the Rust toolchain on your machine.
  • cargo build

You can directly run compatible WASM module by doing:

  • cargo run <filename> <JSON>

Please note that it can and should be used through wasmtime-ffi and with add-json-rs