Skip to content

Commit

Permalink
universal-artifact: fix compilation without 'compiler' feature
Browse files Browse the repository at this point in the history
  • Loading branch information
epilys committed Jun 6, 2022
1 parent 33654c1 commit 3f68849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/universal-artifact/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/universal-artifact/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use loupe::MemoryUsage;
use wasmer_compiler::CompileError;
#[cfg(feature = "compiler")]
use wasmer_compiler::Compiler;
use wasmer_types::Features;

Expand All @@ -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<Box<dyn Compiler>>, features: Features) -> Self {
UniversalEngineBuilder { compiler, features }
}
Expand Down

0 comments on commit 3f68849

Please sign in to comment.