Skip to content

Commit 9765388

Browse files
authored
fix: disallow ureq and reqwest_blocking for WASM and WASI (#1579)
1 parent 2bbca7f commit 9765388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/src/http/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub enum HttpResolverError {
156156
}
157157

158158
#[cfg(all(
159-
not(target_os = "wasi"),
159+
not(target_arch = "wasm32"),
160160
feature = "http_reqwest_blocking",
161161
not(feature = "http_ureq")
162162
))]
@@ -166,7 +166,7 @@ mod sync_resolver {
166166
reqwest::blocking::Client::new()
167167
}
168168
}
169-
#[cfg(all(not(target_os = "wasi"), feature = "http_ureq",))]
169+
#[cfg(all(not(target_arch = "wasm32"), feature = "http_ureq"))]
170170
mod sync_resolver {
171171
pub type Impl = ureq::Agent;
172172
pub fn new() -> Impl {

0 commit comments

Comments
 (0)