Skip to content

Commit 9dc541c

Browse files
committed
update tonic and prost
1 parent 25b0347 commit 9dc541c

File tree

26 files changed

+874
-2215
lines changed

26 files changed

+874
-2215
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,17 @@ members = [
77
"chain/*",
88
"graphql",
99
"node",
10-
"runtime/derive",
11-
"runtime/test",
12-
"runtime/wasm",
13-
"server/graphman",
14-
"server/http",
15-
"server/index-node",
16-
"server/json-rpc",
17-
"server/metrics",
18-
"store/postgres",
19-
"store/test-store",
20-
"substreams/substreams-head-tracker",
21-
"substreams/substreams-trigger-filter",
22-
"substreams/trigger-filters",
10+
"runtime/*",
11+
"server/*",
12+
"store/*",
13+
"substreams/*",
2314
"graph",
2415
"tests",
2516
"graph/derive",
2617
]
2718

2819
[workspace.package]
29-
version = "0.36.0"
20+
version = "0.35.0"
3021
edition = "2021"
3122
authors = ["The Graph core developers & contributors"]
3223
readme = "README.md"
@@ -37,10 +28,10 @@ license = "MIT OR Apache-2.0"
3728
[workspace.dependencies]
3829
anyhow = "1.0"
3930
async-graphql = { version = "7.0.15", features = ["chrono", "uuid"] }
40-
async-graphql-axum = "7.0.11"
41-
axum = "0.7.5"
42-
bs58 = "0.5.1"
31+
async-graphql-axum = "7.0.15"
32+
axum = "0.8.1"
4333
chrono = "0.4.38"
34+
bs58 = "0.5.1"
4435
clap = { version = "4.5.4", features = ["derive", "env"] }
4536
derivative = "2.2.0"
4637
diesel = { version = "2.2.4", features = ["postgres", "serde_json", "numeric", "r2d2", "chrono", "uuid", "i-implement-a-third-party-backend-and-opt-into-breaking-changes"] }
@@ -56,8 +47,8 @@ graphman = { path = "./core/graphman" }
5647
graphman-store = { path = "./core/graphman_store" }
5748
itertools = "0.13.0"
5849
lazy_static = "1.5.0"
59-
prost = "0.12.6"
60-
prost-types = "0.12.6"
50+
prost = "=0.13"
51+
prost-types = "=0.13"
6152
regex = "1.5.4"
6253
reqwest = "0.12.5"
6354
serde = { version = "1.0.126", features = ["rc"] }
@@ -72,11 +63,14 @@ syn = { version = "2.0.87", features = ["full"] }
7263
test-store = { path = "./store/test-store" }
7364
thiserror = "1.0.25"
7465
tokio = { version = "1.38.0", features = ["full"] }
75-
tonic = { version = "0.11.0", features = ["tls-roots", "gzip"] }
76-
tonic-build = { version = "0.11.0", features = ["prost"] }
66+
tonic = { version = "=0.12.3", features = ["tls-roots", "gzip"] }
67+
tonic-build = { version = "=0.12.3", features = ["prost"] }
7768
tower-http = { version = "0.5.2", features = ["cors"] }
7869
wasmparser = "0.118.1"
7970
wasmtime = "15.0.1"
71+
substreams = "=0.6.0"
72+
substreams-entity-change = "2"
73+
substreams-near-core = "=0.10.2"
8074

8175
# Incremental compilation on Rust 1.58 causes an ICE on build. As soon as graph node builds again, these can be removed.
8276
[profile.test]

chain/arweave/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ fn main() {
22
println!("cargo:rerun-if-changed=proto");
33
tonic_build::configure()
44
.out_dir("src/protobuf")
5-
.compile(&["proto/arweave.proto"], &["proto"])
5+
.compile_protos(&["proto/arweave.proto"], &["proto"])
66
.expect("Failed to compile Firehose Arweave proto(s)");
77
}

chain/arweave/src/protobuf/sf.arweave.r#type.v1.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// This file is @generated by prost-build.
2-
#[allow(clippy::derive_partial_eq_without_eq)]
32
#[derive(Clone, PartialEq, ::prost::Message)]
43
pub struct BigInt {
54
#[prost(bytes = "vec", tag = "1")]
65
pub bytes: ::prost::alloc::vec::Vec<u8>,
76
}
8-
#[allow(clippy::derive_partial_eq_without_eq)]
97
#[derive(Clone, PartialEq, ::prost::Message)]
108
pub struct Block {
119
/// Firehose block version (unrelated to Arweave block version)
@@ -75,7 +73,6 @@ pub struct Block {
7573
pub poa: ::core::option::Option<ProofOfAccess>,
7674
}
7775
/// A succinct proof of access to a recall byte found in a TX
78-
#[allow(clippy::derive_partial_eq_without_eq)]
7976
#[derive(Clone, PartialEq, ::prost::Message)]
8077
pub struct ProofOfAccess {
8178
/// The recall byte option chosen; global offset of index byte
@@ -94,7 +91,6 @@ pub struct ProofOfAccess {
9491
#[prost(bytes = "vec", tag = "4")]
9592
pub chunk: ::prost::alloc::vec::Vec<u8>,
9693
}
97-
#[allow(clippy::derive_partial_eq_without_eq)]
9894
#[derive(Clone, PartialEq, ::prost::Message)]
9995
pub struct Transaction {
10096
/// 1 or 2 for v1 or v2 transactions. More allowable in the future
@@ -137,7 +133,6 @@ pub struct Transaction {
137133
#[prost(message, optional, tag = "12")]
138134
pub reward: ::core::option::Option<BigInt>,
139135
}
140-
#[allow(clippy::derive_partial_eq_without_eq)]
141136
#[derive(Clone, PartialEq, ::prost::Message)]
142137
pub struct Tag {
143138
#[prost(bytes = "vec", tag = "1")]

chain/cosmos/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ fn main() {
4949
}
5050

5151
builder
52-
.compile(&[PROTO_FILE], &["proto"])
52+
.compile_protos(&[PROTO_FILE], &["proto"])
5353
.expect("Failed to compile Firehose Cosmos proto(s)");
5454
}

0 commit comments

Comments
 (0)