Skip to content

Commit 1399c08

Browse files
committed
update tonic and prost
1 parent 25b0347 commit 1399c08

File tree

26 files changed

+843
-2175
lines changed

26 files changed

+843
-2175
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ license = "MIT OR Apache-2.0"
3737
[workspace.dependencies]
3838
anyhow = "1.0"
3939
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"
40+
async-graphql-axum = "7.0.15"
41+
axum = "0.8.1"
4342
chrono = "0.4.38"
43+
bs58 = "0.5.1"
4444
clap = { version = "4.5.4", features = ["derive", "env"] }
4545
derivative = "2.2.0"
4646
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 +56,8 @@ graphman = { path = "./core/graphman" }
5656
graphman-store = { path = "./core/graphman_store" }
5757
itertools = "0.13.0"
5858
lazy_static = "1.5.0"
59-
prost = "0.12.6"
60-
prost-types = "0.12.6"
59+
prost = "0.13"
60+
prost-types = "0.13"
6161
regex = "1.5.4"
6262
reqwest = "0.12.5"
6363
serde = { version = "1.0.126", features = ["rc"] }
@@ -72,11 +72,14 @@ syn = { version = "2.0.87", features = ["full"] }
7272
test-store = { path = "./store/test-store" }
7373
thiserror = "1.0.25"
7474
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"] }
75+
tonic = { version = "0.12.3", features = ["tls-roots", "gzip"] }
76+
tonic-build = { version = "0.12.3", features = ["prost"] }
7777
tower-http = { version = "0.5.2", features = ["cors"] }
7878
wasmparser = "0.118.1"
7979
wasmtime = "15.0.1"
80+
substreams = "=0.6.0"
81+
substreams-entity-change = "2"
82+
substreams-near-core = "=0.10.2"
8083

8184
# Incremental compilation on Rust 1.58 causes an ICE on build. As soon as graph node builds again, these can be removed.
8285
[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)