Skip to content

Commit 5241905

Browse files
committed
crate: only include "futures" for wasm_client
Only the wasm client uses it and it is not light.
1 parent d61012a commit 5241905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ docs = ["h1_client"]
2121
h1_client = ["async-h1", "async-std", "async-native-tls"]
2222
native_client = ["curl_client", "wasm_client"]
2323
curl_client = ["isahc", "async-std"]
24-
wasm_client = ["js-sys", "web-sys", "wasm-bindgen", "wasm-bindgen-futures"]
24+
wasm_client = ["js-sys", "web-sys", "wasm-bindgen", "wasm-bindgen-futures", "futures"]
2525
hyper_client = ["hyper", "hyper-tls", "http-types/hyperium_http"]
2626

2727
[dependencies]
2828
async-trait = "0.1.37"
29-
futures = "0.3.1"
3029
http-types = "2.3.0"
3130
log = "0.4.7"
3231

@@ -48,6 +47,7 @@ isahc = { version = "0.9", optional = true, default-features = false, features =
4847
js-sys = { version = "0.3.25", optional = true }
4948
wasm-bindgen = { version = "0.2.48", optional = true }
5049
wasm-bindgen-futures = { version = "0.4.5", optional = true }
50+
futures = { version = "0.3.1", optional = true }
5151

5252
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
5353
version = "0.3.25"

0 commit comments

Comments
 (0)