Skip to content

Commit

Permalink
Remove transitive dependency on mio
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SandroHc committed Sep 8, 2024
1 parent fb1531f commit 0f7c1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion juniper_axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]

[dependencies]
axum = "0.7"
axum = { version = "0.7", default-features = false, features = ["json", "query"] }
futures = { version = "0.3.22", optional = true }
juniper = { version = "0.16", path = "../juniper", default-features = false }
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
Expand Down

0 comments on commit 0f7c1ec

Please sign in to comment.