wasmer/lib/wasi/src/lib.rs

18 lines
353 B
Rust
Raw Normal View History

2019-03-28 18:23:08 +00:00
2019-03-28 18:44:31 +00:00
use wasmer_runtime_core::{
import::ImportObject,
imports,
func,
};
pub fn generate_import_object() -> ImportObject {
imports! {
// This generates the wasi state.
|| {
// returns (pointer to state, function that can destruct the state).
},
"wasi_unstable" => {
},
}
}