Co-authored-by: Kai Ren <tyranron@gmail.com>
This commit is contained in:
parent
0067603765
commit
0e0e6a1ba1
2 changed files with 8 additions and 4 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -274,6 +274,7 @@ jobs:
|
|||
matrix:
|
||||
crate:
|
||||
- juniper
|
||||
- juniper_axum
|
||||
target:
|
||||
- wasm32-unknown-unknown
|
||||
- wasm32-wasi
|
||||
|
@ -289,8 +290,11 @@ 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'
|
||||
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')
|
||||
&& '--features js'
|
||||
|| '' }}
|
||||
|
||||
|
|
|
@ -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"] }
|
||||
|
|
Loading…
Reference in a new issue