mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-03 03:08:22 +00:00
Merge Backend into EngineBuilder and refactor feature flags
This commit is contained in:
@@ -130,7 +130,7 @@ let wasm_bytes = wat2wasm(
|
||||
)?;
|
||||
|
||||
let compiler_config = Cranelift::default();
|
||||
let engine = Backend::new(compiler_config).engine();
|
||||
let engine = Universal::new(compiler_config).engine();
|
||||
let mut store = Store::new(&engine);
|
||||
let module = Module::new(&store, wasm_bytes)?;
|
||||
let instance = Instance::new(&module, &imports! {})?;
|
||||
|
||||
Reference in New Issue
Block a user