Skip to content

Commit

Permalink
Remove transitive mio dependency in juniper_axum crate (#1283, #1282
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kai Ren <tyranron@gmail.com>
  • Loading branch information
SandroHc and tyranron authored Sep 23, 2024
1 parent 0067603 commit 0e0e6a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ jobs:
matrix:
crate:
- juniper
- juniper_axum
target:
- wasm32-unknown-unknown
- wasm32-wasi
Expand All @@ -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'
|| '' }}



Expand Down
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", 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"] }
Expand Down

0 comments on commit 0e0e6a1

Please sign in to comment.