wasmer-wasi
This crate provides the necessary imports to use WASI easily from Wasmer.
Usage
First, add this crate into your Cargo.toml
dependencies:
= "1.0.0-rc"
And then:
use ;
use WasiState;
let store = default;
let module = from_file?;
// Create the WasiEnv
let wasi_env = new
.args
.env
.finalize?;
let import_object = wasi_env.import_object?;
let instance = new?;
wasi_env.set_memory;
let start = instance.exports.get_function?;
start.call?;
Note: you can find a full working example using WASI here.