Skip to content

Commit 0e0e6a1

Browse files
SandroHctyranron
andauthored
Remove transitive mio dependency in juniper_axum crate (#1283, #1282)
Co-authored-by: Kai Ren <[email protected]>
1 parent 0067603 commit 0e0e6a1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ jobs:
274274
matrix:
275275
crate:
276276
- juniper
277+
- juniper_axum
277278
target:
278279
- wasm32-unknown-unknown
279280
- wasm32-wasi
@@ -289,10 +290,13 @@ jobs:
289290
toolchain: ${{ matrix.toolchain }}
290291
target: ${{ matrix.target }}
291292

293+
- name: Switch Cargo workspace to `resolver = "2"`
294+
run: sed -i 's/resolver = "1"/resolver = "2"/' Cargo.toml
295+
292296
- run: cargo check --target ${{ matrix.target }} -p ${{ matrix.crate }}
293-
${{ matrix.target == 'wasm32-unknown-unknown'
294-
&& '--features js'
295-
|| '' }}
297+
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')
298+
&& '--features js'
299+
|| '' }}
296300

297301

298302

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