Skip to content

Commit 1388a24

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

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[workspace]
2-
resolver = "1" # unifying Cargo features asap for Book tests
32
members = [
43
"benches",
54
"book",

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)