Skip to content

Commit

Permalink
Only expose the preview2 module if its feature is enabled (#6615) (#6616
Browse files Browse the repository at this point in the history
)
  • Loading branch information
elliottt authored Jun 21, 2023
1 parent 205f831 commit 15e9d7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/wasi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//! Individual snapshots are available through
//! `wasmtime_wasi::snapshots::preview_{0, 1}::Wasi::new(&Store, Rc<RefCell<WasiCtx>>)`.
#[cfg(feature = "preview2")]
pub mod preview2;

pub use wasi_common::{Error, I32Exit, WasiCtx, WasiDir, WasiFile};
Expand Down

0 comments on commit 15e9d7f

Please sign in to comment.