[][src]Crate wasmer_wasi

Wasmer's WASI implementation

Use generate_import_object to create an ImportObject. This ImportObject can be combined with a module to create an Instance which can execute WASI Wasm functions.

See state for the experimental WASI FS API. Also see the WASI plugin example for an example of how to extend WASI using the WASI FS API.

Modules

state

WARNING: the API exposed here is unstable and very experimental. Certain things are not ready yet and may be broken in patch releases. If you're using this and have any specific needs, please let us know here https://github.com/wasmerio/wasmer/issues/583 or by filing an issue.

types

Structs

ExitCode

This is returned in the Box RuntimeError::Error variant. Use downcast or downcast_ref to retrieve the ExitCode.

Functions

generate_import_object

Creates a Wasi ImportObject with WasiState.

is_wasi_module

Check if a provided module is compiled with WASI support