diff --git a/crates/wasmtime/src/module.rs b/crates/wasmtime/src/module.rs index a97fed26e04a..f4210fa60a3a 100644 --- a/crates/wasmtime/src/module.rs +++ b/crates/wasmtime/src/module.rs @@ -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) -> Result { let bytes = bytes.as_ref(); #[cfg(feature = "wat")] @@ -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],