Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let runtime = Runtime::default(); // or `Runtime::new()`
- // OR
- /*
- let runtime = Runtime::with_config(...)?;
- */
- let module: Module<'runtime> = runtime.compile(wasm)?;
- let instance: Instance<'module> = module.instantiate(&import_object)?;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement