diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index 0fb90a3dcd85..23dccca18cac 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -7,6 +7,7 @@ //! Individual snapshots are available through //! `wasmtime_wasi::snapshots::preview_{0, 1}::Wasi::new(&Store, Rc>)`. +#[cfg(feature = "preview2")] pub mod preview2; pub use wasi_common::{Error, I32Exit, WasiCtx, WasiDir, WasiFile};