Skip to content

Commit 138c3f3

Browse files
committed
fixing wasm request
1 parent 9a7549f commit 138c3f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ license = "MIT"
1010
keywords = ["async_graphql", "async", "graphql", "apollo", "studio"]
1111
categories = ["network-programming", "asynchronous"]
1212
edition = "2021"
13+
resolver = "2"
1314

1415
[features]
1516
default = ["tokio-comp", "compression"]
@@ -38,9 +39,11 @@ uuid = { version = "1.7", features = ["v4"] } # A library to ge
3839

3940
# Non-feature optional dependencies
4041
libflate = { version = "2", optional = true }
41-
tokio = { version = "1", features = ["full"], optional = true }
4242
async-std = { version = "1", features = ["default"], optional = true }
4343

44+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
45+
tokio = { version = "1", features = ["full"], optional = true }
46+
4447
[build-dependencies]
4548
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
4649
tonic-build = "0.10"

0 commit comments

Comments
 (0)