From 809f33018996bd0b51f5cb534f46a8d4a6932996 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Thu, 1 Feb 2024 09:07:09 +0100 Subject: [PATCH] don't add web-sys to native builds (#48) Not sure if `web-sys` was intentionally added as a dependency to all builds? Does not seem to be required for native builds. --- ehttp/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ehttp/Cargo.toml b/ehttp/Cargo.toml index ad48067..6c28631 100644 --- a/ehttp/Cargo.toml +++ b/ehttp/Cargo.toml @@ -46,8 +46,7 @@ wasm-bindgen-futures = "0.4" futures-util = { version = "0.3", optional = true } wasm-streams = { version = "0.4", optional = true } - -[dependencies.web-sys] +[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3.52" features = [ "AbortSignal",