Skip to content

Commit 980d9ac

Browse files
committed
all: Unify/simplify some of our dependencies
1 parent cd80c22 commit 980d9ac

15 files changed

Lines changed: 38 additions & 42 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ axum = "0.8.8"
4545
chrono = "0.4.43"
4646
bs58 = "0.5.1"
4747
clap = { version = "4.5.4", features = ["derive", "env", "wrap_help"] }
48+
clap_complete = "4"
4849
derivative = "2.2.0"
4950
diesel = { version = "2.2.7", features = [
5051
"postgres",
@@ -59,7 +60,9 @@ diesel-derive-enum = { version = "2.1.0", features = ["postgres"] }
5960
diesel-dynamic-schema = { version = "0.2.3", features = ["postgres"] }
6061
diesel_derives = "2.3.7"
6162
diesel_migrations = "2.3.1"
63+
env_logger = "0.11.8"
6264
envconfig = "0.11.1"
65+
git-testament = "0.2"
6366
graph = { path = "./graph" }
6467
graph-core = { path = "./core" }
6568
graph-store-postgres = { path = "./store/postgres" }
@@ -79,6 +82,7 @@ redis = { version = "1.0.3", features = [
7982
] }
8083
regex = "1.5.4"
8184
reqwest = "0.12.23"
85+
semver = { version = "1", features = ["serde"] }
8286
serde = { version = "1.0.126", features = ["rc"] }
8387
serde_derive = "1.0.125"
8488
serde_json = { version = "1.0", features = ["arbitrary_precision"] }

chain/ethereum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ prost-types = { workspace = true }
1414
anyhow = "1.0"
1515
tiny-keccak = "1.5.0"
1616
hex = "0.4.3"
17-
semver = "1.0.27"
17+
semver = { workspace = true }
1818
thiserror = { workspace = true }
1919
tokio = { workspace = true }
2020
tokio-stream = { workspace = true }

gnd/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ graph-node = { path = "../node" }
2424
# Direct dependencies from current dev.rs
2525
anyhow = { workspace = true }
2626
clap = { workspace = true }
27-
clap_complete = "4"
28-
env_logger = "0.11.8"
29-
git-testament = "0.2"
30-
lazy_static = "1.5.0"
27+
clap_complete = { workspace = true }
28+
env_logger = { workspace = true }
29+
git-testament = { workspace = true }
30+
lazy_static = { workspace = true }
3131
serde = { workspace = true }
3232
tokio = { workspace = true }
33-
tokio-util.workspace = true
33+
tokio-util = { workspace = true }
3434

3535
# File watching
3636
notify = "8.2.0"
@@ -51,14 +51,14 @@ indicatif = "0.17"
5151
console = "0.15"
5252

5353
# Code generation
54-
graphql-parser = "0.4"
55-
regex = "1"
54+
graphql-tools = { workspace = true }
55+
regex = { workspace = true }
5656
ethabi = "17.2"
57-
serde_yaml = "0.9"
57+
serde_yaml = { workspace = true }
5858
Inflector = { workspace = true }
5959

6060
# Migrations
61-
semver = "1"
61+
semver = { workspace = true }
6262

6363
# Build command
6464
sha1 = "0.10"

gnd/src/codegen/schema.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
//! Generates AssemblyScript entity classes from GraphQL schemas.
44
55
use anyhow::{anyhow, Result};
6-
use graphql_parser::schema::{Definition, Document, Field, ObjectType, Type, TypeDefinition};
6+
use graphql_tools::parser::schema::{
7+
Definition, Document, Field, ObjectType, Type, TypeDefinition,
8+
};
79

810
use super::types::{asc_type_for_value, value_from_asc, value_to_asc};
911
use super::typescript::{
@@ -711,7 +713,7 @@ enum StoreMethod {
711713
#[cfg(test)]
712714
mod tests {
713715
use super::*;
714-
use graphql_parser::parse_schema;
716+
use graphql_tools::parser::parse_schema;
715717

716718
#[test]
717719
fn test_simple_entity() {
@@ -1045,7 +1047,7 @@ mod tests {
10451047

10461048
#[test]
10471049
fn test_list_depth() {
1048-
use graphql_parser::parse_schema;
1050+
use graphql_tools::parser::parse_schema;
10491051

10501052
// Helper to get list depth from schema field type
10511053
fn get_field_list_depth(schema_str: &str) -> u8 {

gnd/src/commands/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::path::{Path, PathBuf};
1212
use anyhow::{anyhow, Context, Result};
1313
use clap::Parser;
1414
use ethabi::Contract;
15-
use graphql_parser::schema as gql;
15+
use graphql_tools::parser::schema as gql;
1616
use semver::Version;
1717

1818
use crate::abi::normalize_abi_json;

gnd/src/commands/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::path::{Path, PathBuf};
1515

1616
use anyhow::{anyhow, Context, Result};
1717
use clap::{Parser, ValueEnum};
18-
use graphql_parser::schema as gql;
18+
use graphql_tools::parser::schema as gql;
1919

2020
use crate::commands::add::{run_add, AddOpt};
2121
use crate::commands::codegen::{run_codegen, CodegenOpt};

graph/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ hyper-util = { version = "0.1", features = ["full"] }
3636
futures01 = { package = "futures", version = "0.1.31" }
3737
lru_time_cache = "0.11"
3838
graphql-tools = { workspace = true }
39-
lazy_static = "1.5.0"
39+
lazy_static = { workspace = true }
4040
num-bigint = { version = "=0.2.6", features = ["serde"] }
4141
num-integer = { version = "=0.1.46" }
4242
num-traits = "=0.2.19"
4343
rand.workspace = true
4444
redis = { workspace = true }
45-
regex = "1.5.4"
46-
semver = { version = "1.0.27", features = ["serde"] }
45+
regex = { workspace = true }
46+
semver = { workspace = true }
4747
serde = { workspace = true }
4848
serde_derive = { workspace = true }
4949
serde_json = { workspace = true }

graphql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async-trait = { workspace = true }
88
crossbeam = "0.8"
99
graph = { path = "../graph" }
1010
graphql-tools = { workspace = true }
11-
lazy_static = "1.5.0"
11+
lazy_static = { workspace = true }
1212
stable-hash = { git = "https://github.com/graphprotocol/stable-hash", branch = "main"}
1313
stable-hash_legacy = { git = "https://github.com/graphprotocol/stable-hash", branch = "old", package = "stable-hash" }
1414
parking_lot = "0.12"

node/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ path = "src/bin/manager.rs"
1414

1515
[dependencies]
1616
anyhow = { workspace = true }
17-
env_logger = "0.11.8"
17+
env_logger = { workspace = true }
1818
clap.workspace = true
19-
git-testament = "0.2"
19+
git-testament = { workspace = true }
2020
itertools = { workspace = true }
21-
lazy_static = "1.5.0"
21+
lazy_static = { workspace = true }
2222
url = "2.5.8"
2323
graph = { path = "../graph" }
2424
graph-core = { path = "../core" }

0 commit comments

Comments
 (0)