diff --git a/lib/universal-artifact/Cargo.toml b/lib/universal-artifact/Cargo.toml index f2fe32cb673..c1127eed83d 100644 --- a/lib/universal-artifact/Cargo.toml +++ b/lib/universal-artifact/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] wasmer-artifact = { path = "../artifact", version = "=2.3.0" } wasmer-types = { path = "../types", version = "=2.3.0" } -wasmer-compiler = { path = "../compiler", version = "=2.3.0" } +wasmer-compiler = { path = "../compiler", version = "=2.3.0", features = ["translator", ] } loupe = "0.1" thiserror = "1.0" enumset = "1.0" diff --git a/lib/universal-artifact/src/engine.rs b/lib/universal-artifact/src/engine.rs index fe57b3156c8..313d2854a05 100644 --- a/lib/universal-artifact/src/engine.rs +++ b/lib/universal-artifact/src/engine.rs @@ -2,7 +2,6 @@ use loupe::MemoryUsage; use wasmer_compiler::CompileError; -#[cfg(feature = "compiler")] use wasmer_compiler::Compiler; use wasmer_types::Features; @@ -18,6 +17,7 @@ pub struct UniversalEngineBuilder { impl UniversalEngineBuilder { /// Create a new builder with pre-made components + #[cfg(feature = "compiler")] pub fn new(compiler: Option>, features: Features) -> Self { UniversalEngineBuilder { compiler, features } }