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
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -274,6 +274,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
crate:
|
crate:
|
||||||
- juniper
|
- juniper
|
||||||
|
- juniper_axum
|
||||||
target:
|
target:
|
||||||
- wasm32-unknown-unknown
|
- wasm32-unknown-unknown
|
||||||
- wasm32-wasi
|
- wasm32-wasi
|
||||||
|
@ -289,10 +290,13 @@ jobs:
|
||||||
toolchain: ${{ matrix.toolchain }}
|
toolchain: ${{ matrix.toolchain }}
|
||||||
target: ${{ matrix.target }}
|
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 }}
|
- run: cargo check --target ${{ matrix.target }} -p ${{ matrix.crate }}
|
||||||
${{ matrix.target == 'wasm32-unknown-unknown'
|
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')
|
||||||
&& '--features js'
|
&& '--features js'
|
||||||
|| '' }}
|
|| '' }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||||
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]
|
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = "0.7"
|
axum = { version = "0.7", features = ["json", "query"], default-features = false }
|
||||||
futures = { version = "0.3.22", optional = true }
|
futures = { version = "0.3.22", optional = true }
|
||||||
juniper = { version = "0.16", path = "../juniper", default-features = false }
|
juniper = { version = "0.16", path = "../juniper", default-features = false }
|
||||||
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
|
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
|
||||||
|
|
Loading…
Reference in a new issue