Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. use wasmer::Runtime;
  2.  
  3. fn main() {
  4. let runtime = Runtime::default(); // or `Runtime::new()`
  5. // OR
  6. /*
  7. let runtime = Runtime::with_config(...)?;
  8. */
  9.  
  10. let module: Module<'runtime> = runtime.compile(wasm)?;
  11.  
  12. let instance: Instance<'module> = module.instantiate(&import_object)?;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement