Advertisement
Guest User

Untitled

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