wasmtime-wasi: re-export wasi-cap-std-sync

This commit is contained in:
Pat Hickey
2021-03-25 16:49:31 -07:00
parent 211731b876
commit 19a802549f
3 changed files with 14 additions and 0 deletions

View File

@@ -12,6 +12,14 @@ use std::rc::Rc;
pub use wasi_common::{Error, WasiCtx, WasiCtxBuilder, WasiDir, WasiFile};
use wasmtime::{Config, Linker, Store};
/// Re-export the commonly used wasi-cap-std-sync crate here. This saves
/// consumers of this library from having to keep additional dependencies
/// in sync.
#[cfg(feature = "sync")]
pub mod sync {
pub use wasi_cap_std_sync::*;
}
/// An instantiated instance of all available wasi exports. Presently includes
/// both the "preview1" snapshot and the "unstable" (preview0) snapshot.
pub struct Wasi {