Expand description
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§
- 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.
Structs§
- This is returned in
RuntimeError
. Usedowncast
ordowncast_ref
to retrieve theExitCode
.
Enums§
- The version of WASI. This is determined by the imports namespace string.
Functions§
- Creates a Wasi
ImportObject
withWasiState
with the latest snapshot of WASI. - Create an
ImportObject
with an existingWasiState
.WasiState
can be constructed from aWasiStateBuilder
. - Detect the version of WASI being used based on the import namespaces.
- Check if a provided module is compiled for some version of WASI. Use
get_wasi_version
to find out which version of WASI the module is.