Skip to content

Commit

Permalink
Fix no-default-features build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Feb 7, 2022
1 parent 3fdc220 commit b9e160e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/wasmtime/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ impl Module {
Self::new_impl(engine, bytes, Some(name.to_string()))
}

#[cfg(compiler)]
fn new_impl(engine: &Engine, bytes: impl AsRef<[u8]>, name: Option<String>) -> Result<Module> {
let bytes = bytes.as_ref();
#[cfg(feature = "wat")]
Expand Down Expand Up @@ -296,6 +297,7 @@ impl Module {
Self::from_binary_with_name(engine, binary, None)
}

#[cfg(compiler)]
fn from_binary_with_name(
engine: &Engine,
binary: &[u8],
Expand Down

0 comments on commit b9e160e

Please sign in to comment.