Crate wasi_interpreter

source ·
Expand description

Interpreter for executing WASI-compliant WASM binaries.

wasi_interpreter provides an interface between the wasmi crate (used to interpret WebAssembly) and Theseus under the assumption of a WASI interface.

This library exposes a public method called execute_binary to allow for the execution of a WebAssembly binary given directory permissions (in accordance to the WASI capabilities model) and arguments.

This library depends on the following modules:

  • wasi_definitions
  • wasi_syscalls
  • posix_file_system
  • wasmi_state_machine

Macros

  • Macro to efficiently generate wasmi function signature.

Structs

  • Theseus and wasmi I/O required to execute WASI system calls.

Functions