Skip to content

Commit 1967204

Browse files
authored
Update graphql-parser to v0.4.0 (#3020)
1 parent 29cc7aa commit 1967204

File tree

12 files changed

+16
-17
lines changed

12 files changed

+16
-17
lines changed

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ members = [
1818
"tests",
1919
]
2020

21-
22-
[patch.crates-io]
23-
# Include protection against stack overflow when parsing from this PR: https://github.com/graphql-rust/graphql-parser/commit/45167b53e9533c331298683577ba8df7e43480ac
24-
graphql-parser = {git="https://github.com/graphql-rust/graphql-parser", rev="45167b53e9533c331298683577ba8df7e43480ac"}
25-
2621
# Incremental compilation on Rust 1.55 causes an ICE on build. As soon as graph node builds again, these can be removed.
2722
[profile.dev]
2823
incremental = false

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ graph-mock = { path = "../mock" }
2929
walkdir = "2.3.2"
3030
test-store = { path = "../store/test-store" }
3131
hex = "0.4.3"
32-
graphql-parser = "0.3"
32+
graphql-parser = "0.4.0"
3333
pretty_assertions = "1.0.0"
3434
anyhow = "1.0"

graph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ hex = "0.4.3"
2020
http = "0.2.3"
2121
fail = { version = "0.5", features = ["failpoints"] }
2222
futures = "0.1.21"
23-
graphql-parser = "0.3.0"
23+
graphql-parser = "0.4.0"
2424
lazy_static = "1.4.0"
2525
mockall = "0.8.3"
2626
num-bigint = { version = "^0.2.6", features = ["serde"] }

graphql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
crossbeam = "0.8"
88
futures01 = { package="futures", version="0.1.29" }
99
graph = { path = "../graph" }
10-
graphql-parser = "0.3"
10+
graphql-parser = "0.4.0"
1111
indexmap = "1.7"
1212
Inflector = "0.11.3"
1313
lazy_static = "1.2.0"

graphql/src/schema/api.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ fn add_directives(schema: &mut Document) {
144144
name: "entity".to_owned(),
145145
arguments: vec![],
146146
locations: vec![DirectiveLocation::Object],
147+
repeatable: false,
147148
});
148149

149150
let derived_from = Definition::DirectiveDefinition(DirectiveDefinition {
@@ -159,6 +160,7 @@ fn add_directives(schema: &mut Document) {
159160
directives: vec![],
160161
}],
161162
locations: vec![DirectiveLocation::FieldDefinition],
163+
repeatable: false,
162164
});
163165

164166
let subgraph_id = Definition::DirectiveDefinition(DirectiveDefinition {
@@ -174,6 +176,7 @@ fn add_directives(schema: &mut Document) {
174176
directives: vec![],
175177
}],
176178
locations: vec![DirectiveLocation::Object],
179+
repeatable: false,
177180
});
178181

179182
schema.definitions.push(entity);

node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ path = "src/bin/manager.rs"
1616
clap = "2.33.3"
1717
env_logger = "0.9.0"
1818
git-testament = "0.2"
19-
graphql-parser = "0.3"
19+
graphql-parser = "0.4.0"
2020
futures = { version = "0.3.1", features = ["compat"] }
2121
lazy_static = "1.2.0"
2222
url = "2.2.1"

server/http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2018"
55

66
[dependencies]
77
futures = "0.1.21"
8-
graphql-parser = "0.3"
8+
graphql-parser = "0.4.0"
99
http = "0.2"
1010
hyper = "0.14"
1111
serde = "1.0"

server/index-node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ graph = { path = "../../graph" }
99
graph-graphql = { path = "../../graphql" }
1010
graph-chain-ethereum = { path = "../../chain/ethereum" }
1111
graph-chain-near = { path = "../../chain/near" }
12-
graphql-parser = "0.3"
12+
graphql-parser = "0.4.0"
1313
http = "0.2"
1414
hyper = "0.14"
1515
serde = "1.0"

server/websocket/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66
[dependencies]
77
futures = "0.1.23"
88
graph = { path = "../../graph" }
9-
graphql-parser = "0.3"
9+
graphql-parser = "0.4.0"
1010
http = "0.2"
1111
lazy_static = "1.2.0"
1212
serde = "1.0"

0 commit comments

Comments
 (0)