From 2d7ba1dc408ee2a63032a50742c18f6ed3543e8d Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Thu, 10 Aug 2023 17:34:33 +0800 Subject: [PATCH] Updated wasi-web's Cargo.lock and fixed a compilation error --- lib/wasi-web/Cargo.lock | 4 ++++ lib/wasix/src/http/mod.rs | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/wasi-web/Cargo.lock b/lib/wasi-web/Cargo.lock index 71392050ba0..0737fa9a6a6 100644 --- a/lib/wasi-web/Cargo.lock +++ b/lib/wasi-web/Cargo.lock @@ -2544,6 +2544,7 @@ dependencies = [ "heapless", "hex", "http", + "js-sys", "lazy_static", "libc", "linked_hash_set", @@ -2571,9 +2572,12 @@ dependencies = [ "virtual-net", "wai-bindgen-wasmer", "waker-fn", + "wasm-bindgen", + "wasm-bindgen-futures", "wasmer", "wasmer-types", "wasmer-wasix-types", + "web-sys", "webc", "weezl", "winapi", diff --git a/lib/wasix/src/http/mod.rs b/lib/wasix/src/http/mod.rs index 1afb9ca9cd3..b2f6aebce56 100644 --- a/lib/wasix/src/http/mod.rs +++ b/lib/wasix/src/http/mod.rs @@ -7,7 +7,10 @@ pub mod reqwest; #[cfg(feature = "js")] mod web_http_client; -pub use self::{client::*, web_http_client::WebHttpClient}; +#[cfg(feature = "js")] +pub use self::web_http_client::WebHttpClient; + +pub use self::client::*; pub(crate) const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "-", env!("CARGO_PKG_VERSION"));