Skip to content

Commit a3754b5

Browse files
committed
Use juniper_book crate only for Book dependencies
1 parent 077fded commit a3754b5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ jobs:
288288
toolchain: ${{ matrix.toolchain }}
289289
target: ${{ matrix.target }}
290290

291-
- name: Switch Cargo workspace to `resolver = "2"`
292-
run: sed -i 's/resolver = "1"/resolver = "2"/' Cargo.toml
291+
- name: Switch Cargo workspace to `resolver = "3"`
292+
run: sed -i 's/resolver = "1"/resolver = "3"/' Cargo.toml
293293

294294
- run: cargo check --target ${{ matrix.target }} -p ${{ matrix.crate }}
295295
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ifeq ($(clean),yes)
9898
cargo clean
9999
endif
100100
$(eval target := $(strip $(shell cargo -vV | sed -n 's/host: //p')))
101-
cargo build --all-features
101+
cargo build -p juniper_book
102102
mdbook test book -L target/debug/deps $(strip \
103103
$(if $(call eq,$(findstring windows,$(target)),),,\
104104
$(shell cargo metadata -q \

book/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ authors = ["Kai Ren <[email protected]>"]
66
publish = false
77

88
[dependencies]
9-
dataloader = "0.18" # for Book only
9+
anyhow = "1.0"
10+
dataloader = "0.18"
11+
derive_more = { version = "2.0", features = ["display", "from", "try_into"] }
12+
juniper = { path = "../juniper", features = ["anyhow", "schema-language"] }
13+
juniper_subscriptions = { path = "../juniper_subscriptions" }
14+
serde_json = "1.0"
15+
tokio = { version = "1.0", features = ["sync"] }
1016

1117
[lints.clippy]
1218
allow_attributes = "warn"

book/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
//! Crate keeping dependencies for running Book tests.
22
3+
use anyhow as _;
34
use dataloader as _;
5+
use derive_more as _;
6+
use juniper as _;
7+
use juniper_subscriptions as _;
8+
use serde_json as _;
9+
use tokio as _;

0 commit comments

Comments
 (0)