Skip to content

Commit fa57e7d

Browse files
committed
fix build when component-model-async feature disabled
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent ad328fe commit fa57e7d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/wasmtime/src/runtime/component/concurrent_disabled.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ fn should_have_failed_validation<T>(what: &str) -> Result<T> {
2121
))
2222
}
2323

24+
pub(crate) fn check_blocking(_: &mut dyn VMStore) -> Result<()> {
25+
Ok(())
26+
}
27+
2428
pub(crate) fn poll_and_block<R: Send + Sync + 'static>(
2529
_store: &mut dyn VMStore,
2630
future: impl Future<Output = Result<R>> + Send + 'static,

crates/wasmtime/src/runtime/component/func/host.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ impl FunctionStyle for SyncStyle {
5151
const ASYNC: bool = false;
5252
}
5353

54+
#[cfg(feature = "component-model-async")]
5455
struct AsyncStyle;
5556

57+
#[cfg(feature = "component-model-async")]
5658
impl FunctionStyle for AsyncStyle {
5759
const ASYNC: bool = true;
5860
}

0 commit comments

Comments
 (0)