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:
Manos Pitsidianakis
2022-07-25 11:48:04 +03:00
parent b9ab9515c1
commit 4a06b1d3f6
45 changed files with 109 additions and 109 deletions

View File

@ -11,7 +11,7 @@
//! Ready?
use wasmer::{imports, wat2wasm, Instance, Module, Store, Value};
use wasmer_compiler::Universal;
use wasmer_compiler::Backend;
use wasmer_compiler_llvm::LLVM;
fn main() -> Result<(), Box<dyn std::error::Error>> {
@ -33,7 +33,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let compiler = LLVM::default();
// Create the store
let mut store = Store::new_with_engine(&Universal::new(compiler).engine());
let mut store = Store::new_with_engine(&Backend::new(compiler).engine());
println!("Compiling module...");
// Let's compile the Wasm module.