wasmer-wasi
This crate provides the necessary imports to use WASI easily from Wasmer.
```rust use wasmer::{Store, Module, Instance}; use wasmer_wasi::WasiState;
let store = Store::default(); let module = Module::fromfile(&store, "mywasi_module.wasm")?;
// Create the WasiEnv let wasi_env = WasiState::new("command name") .args(&["world"]) .env("KEY", "VALUE") .finalize()?;
let importobject = wasienv.importobject(&module)?; let instance = Instance::new(&module, &importobject)?;
let start = instance.exports.getfunction("start")?; start.call(&[])?; ```
Note: you can find a full working example using WASI here.