mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
Rename engine's Universal type to Backend
The Universal type was essentially a builder of engines that's given a compiler backend and creates an Engine with .engine() method. The name was not clear.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
//! Ready?
|
||||
|
||||
use wasmer::{imports, wat2wasm, Instance, Module, Store, Value};
|
||||
use wasmer_compiler::Universal;
|
||||
use wasmer_compiler::Backend;
|
||||
use wasmer_compiler_cranelift::Cranelift;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
@@ -49,7 +49,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
//
|
||||
// In this case, the engine is `wasmer_compiler` which roughly
|
||||
// means that the executable code will live in memory.
|
||||
let engine = Universal::new(compiler_config).engine();
|
||||
let engine = Backend::new(compiler_config).engine();
|
||||
|
||||
// Create a store, that holds the engine.
|
||||
let mut store = Store::new_with_engine(&engine);
|
||||
|
||||
Reference in New Issue
Block a user