Skip to content

Commit

Permalink
chore: enable async feature for the HTTP binding generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Oct 3, 2023
1 parent df0001d commit 2dafc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion crates/worker/src/bindings/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2dafc5a

Please sign in to comment.