diff --git a/crates/worker/Cargo.toml b/crates/worker/Cargo.toml index 23aec7b4..991f77c3 100644 --- a/crates/worker/Cargo.toml +++ b/crates/worker/Cargo.toml @@ -26,6 +26,6 @@ wws-data-kv = { workspace = true } wws-runtimes = { workspace = true } # We didn't integrate components yet. For an initial binding implementation, # we will use the wit-bindgen-wasmtime crate maintained by the Fermyon team. -wit-bindgen-wasmtime = { git = "https://github.com/fermyon/wit-bindgen-backport", rev = "598cd229bb43baceff9616d16930b8a5a3e79d79" } +wit-bindgen-wasmtime = { git = "https://github.com/fermyon/wit-bindgen-backport", rev = "598cd229bb43baceff9616d16930b8a5a3e79d79", features = ["async"] } base64 = "0.21.0" sha256 = "1.1.1" diff --git a/crates/worker/src/bindings/http.rs b/crates/worker/src/bindings/http.rs index cfe316cb..f6610845 100644 --- a/crates/worker/src/bindings/http.rs +++ b/crates/worker/src/bindings/http.rs @@ -7,7 +7,7 @@ use reqwest::Method; use tokio::runtime::Builder; // Implement the HTTP bindings for the workers. -wit_bindgen_wasmtime::export!({paths: ["../../wit/core/http.wit"]}); +wit_bindgen_wasmtime::export!({paths: ["../../wit/core/http.wit"], async: []}); use http::{Http, HttpError, HttpMethod, HttpRequest, HttpRequestError, HttpResponse}; pub use http::add_to_linker;