Skip to content

Commit fb2ac45

Browse files
author
Marques, Sandro | ECMPD
committed
Remove transitive dependency on mio
This allows projects targeting `wasm32-unknown-unknown` to compile. The `mio` dependency is being brought in via: `juniper_axum`→`axum`→`axum/tokio`→`tokio/net`→`mio`. By disabling the default features of `axum`, we disable its `tokio` feature.
1 parent fb1531f commit fb2ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

juniper_axum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
2525
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]
2626

2727
[dependencies]
28-
axum = "0.7"
28+
axum = { version = "0.7", default-features = false, features = ["json", "query"] }
2929
futures = { version = "0.3.22", optional = true }
3030
juniper = { version = "0.16", path = "../juniper", default-features = false }
3131
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }

0 commit comments

Comments
 (0)