Remove transitive mio dependency in juniper_axum crate (#1283, #1282)

Co-authored-by: Kai Ren <tyranron@gmail.com>
This commit is contained in:
Sandro Marques 2024-09-24 06:03:52 +09:00 committed by GitHub
parent 0067603765
commit 0e0e6a1ba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -274,6 +274,7 @@ jobs:
matrix:
crate:
- juniper
- juniper_axum
target:
- wasm32-unknown-unknown
- wasm32-wasi
@ -289,10 +290,13 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- name: Switch Cargo workspace to `resolver = "2"`
run: sed -i 's/resolver = "1"/resolver = "2"/' Cargo.toml
- run: cargo check --target ${{ matrix.target }} -p ${{ matrix.crate }}
${{ matrix.target == 'wasm32-unknown-unknown'
&& '--features js'
|| '' }}
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')
&& '--features js'
|| '' }}

View file

@ -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", features = ["json", "query"], default-features = false }
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"] }