From 0faf3b248e4ed1c56811571e444753831594a47b Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 5 May 2021 11:00:59 -0700 Subject: [PATCH] wasmtime-wasi: keep exporting sync at the top level --- crates/wasi/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index f0ac46811c..3edaa34505 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -18,6 +18,11 @@ pub mod sync { super::define_wasi!(block_on); } +/// Sync mode is the "default" of this crate, so we also export it at the top +/// level. +#[cfg(feature = "sync")] +pub use sync::*; + /// Re-export the wasi-tokio crate here. This saves consumers of this library from having /// to keep additional dependencies in sync. #[cfg(feature = "tokio")]