Skip to content

Commit 2dafc5a

Browse files
committed
chore: enable async feature for the HTTP binding generation
1 parent df0001d commit 2dafc5a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/worker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ wws-data-kv = { workspace = true }
2626
wws-runtimes = { workspace = true }
2727
# We didn't integrate components yet. For an initial binding implementation,
2828
# we will use the wit-bindgen-wasmtime crate maintained by the Fermyon team.
29-
wit-bindgen-wasmtime = { git = "https://github.com/fermyon/wit-bindgen-backport", rev = "598cd229bb43baceff9616d16930b8a5a3e79d79" }
29+
wit-bindgen-wasmtime = { git = "https://github.com/fermyon/wit-bindgen-backport", rev = "598cd229bb43baceff9616d16930b8a5a3e79d79", features = ["async"] }
3030
base64 = "0.21.0"
3131
sha256 = "1.1.1"

crates/worker/src/bindings/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use reqwest::Method;
77
use tokio::runtime::Builder;
88

99
// Implement the HTTP bindings for the workers.
10-
wit_bindgen_wasmtime::export!({paths: ["../../wit/core/http.wit"]});
10+
wit_bindgen_wasmtime::export!({paths: ["../../wit/core/http.wit"], async: []});
1111
use http::{Http, HttpError, HttpMethod, HttpRequest, HttpRequestError, HttpResponse};
1212

1313
pub use http::add_to_linker;

0 commit comments

Comments
 (0)