summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/wasm-wasi-component/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm-wasi-component/src/lib.rs b/src/wasm-wasi-component/src/lib.rs
index 888074ab..3ee40c4f 100644
--- a/src/wasm-wasi-component/src/lib.rs
+++ b/src/wasm-wasi-component/src/lib.rs
@@ -200,7 +200,8 @@ impl GlobalState {
let component = Component::from_file(&engine, &global_config.component)
.context("failed to compile component")?;
let mut linker = Linker::<StoreState>::new(&engine);
- wasmtime_wasi_http::proxy::add_to_linker(&mut linker)?;
+ wasmtime_wasi::preview2::command::add_to_linker(&mut linker)?;
+ wasmtime_wasi_http::proxy::add_only_http_to_linker(&mut linker)?;
let component = linker
.instantiate_pre(&component)
.context("failed to pre-instantiate the provided component")?;