From 3f688496e9fe7d748ff08a9c0b19872fcd9a73fc Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 6 Jun 2022 23:11:26 +0300 Subject: [PATCH] universal-artifact: fix compilation without 'compiler' feature --- lib/universal-artifact/Cargo.toml | 2 +- lib/universal-artifact/src/engine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } }