Partial rebase to wasmer master (non-functional)

This commit is contained in:
Christoph Herzog
2022-11-07 15:15:25 +01:00
parent 587571804e
commit 61190088d2
39 changed files with 6491 additions and 2473 deletions

View File

@@ -196,7 +196,7 @@ import_object.define("env", "host_function", host_function);
let instance = Instance::new(&mut store, &module, &import_object).expect("Could not instantiate module.");
```
For WASI, don't forget to initialize it
For WASI, don't forget to initialize the `WasiEnv` (it will import the memory)
```rust
let mut wasi_env = WasiState::new("hello").finalize()?;