A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Relax required features for `*_async` host functions (#12364)
Alex Crichton8e194be7439e
diff --git a/crates/wasmtime/src/runtime/func.rs b/crates/wasmtime/src/runtime/func.rsindex dd347a11b5..54aa23d074 100644--- a/crates/wasmtime/src/runtime/func.rs+++ b/crates/wasmtime/src/runtime/func.rs@@ -501,7 +501,7 @@ impl Func {/// # Ok(())/// # }/// ```- #[cfg(all(feature = "async", feature = "cranelift"))]+ #[cfg(feature = "async")]pub fn new_async<T, F>(store: impl AsContextMut<Data = T>, ty: FuncType, func: F) -> FuncwhereF: for<'a> Fn(diff --git a/crates/wasmtime/src/runtime/linker.rs b/crates/wasmtime/src/runtime/linker.rsindex 9d399cff41..872b4669ba 100644--- a/crates/wasmtime/src/runtime/linker.rs+++ b/crates/wasmtime/src/runtime/linker.rs@@ -449,7 +449,7 @@ impl<T> Linker<T> {////// * If the given function type is not associated with the same engine as/// this linker.- #[cfg(all(feature = "async", feature = "cranelift"))]+ #[cfg(feature = "async")]pub fn func_new_async<F>(&mut self,module: &str,@@ -855,7 +855,7 @@ impl<T> Linker<T> {/// Define automatic instantiations of a [`Module`] in this linker.////// This is the same as [`Linker::module`], except for async `Store`s.- #[cfg(all(feature = "async", feature = "cranelift"))]+ #[cfg(feature = "async")]pub async fn module_async(&mut self,mut store: impl AsContextMut<Data = T>,