From 09f2db777c691ca8c452df929597feff4a9ceb16 Mon Sep 17 00:00:00 2001 From: Joseph Livesey Date: Fri, 15 Aug 2025 08:08:09 -0400 Subject: [PATCH 1/2] build: update tonic, prost dependencies Signed-off-by: Joseph Livesey --- Cargo.toml | 7 ++++--- tap_aggregator/Cargo.toml | 2 ++ tap_aggregator/build.rs | 18 ++++++++++-------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b079cf3..c0cf146 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ jsonrpsee-core = "0.25.1" lazy_static = "1.5.0" log = "0.4.27" prometheus = "0.14.0" -prost = "0.13.5" +prost = "0.14.1" rand = "0.9.1" rayon = "1.10.0" rdkafka = { version = "0.37.0", features = ["tokio", "sasl"] } @@ -53,7 +53,8 @@ tap_receipt = { version = "1.1.2", path = "tap_receipt" } thegraph-core = "0.15.1" thiserror = "2.0.12" tokio = { version = "1.44.2", features = ["macros", "signal"] } -tonic = { version = "0.13.0", features = ["transport", "zstd"] } -tonic-build = "0.13.0" +tonic = { version = "0.14.1", features = ["transport", "zstd"] } +tonic-build = "0.14.1" +tonic-prost-build = "0.14.1" tower = { version = "0.5.2", features = ["util", "steer"] } tracing-subscriber = "0.3.19" diff --git a/tap_aggregator/Cargo.toml b/tap_aggregator/Cargo.toml index dec8a0a..0fc93cd 100644 --- a/tap_aggregator/Cargo.toml +++ b/tap_aggregator/Cargo.toml @@ -36,11 +36,13 @@ tap_graph.workspace = true thegraph-core = { workspace = true, features = ["alloy-eip712"] } tokio.workspace = true tonic.workspace = true +tonic-prost = "0.14.1" tower = { workspace = true, features = ["util", "steer", "limit"] } tracing-subscriber.workspace = true [build-dependencies] tonic-build.workspace = true +tonic-prost-build.workspace = true [dev-dependencies] rand.workspace = true diff --git a/tap_aggregator/build.rs b/tap_aggregator/build.rs index dc93c61..b0a9a03 100644 --- a/tap_aggregator/build.rs +++ b/tap_aggregator/build.rs @@ -6,14 +6,16 @@ fn main() -> Result<(), Box> { let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR not set by Cargo"); println!("OUT_DIR: {out_dir}"); // This should print the output directory - tonic_build::configure().compile_protos( - &[ - "proto/uint128.proto", - "proto/tap_aggregator.proto", - "proto/v2.proto", - ], - &["proto"], - )?; + tonic_prost_build::configure() + .build_server(true) + .compile_protos( + &[ + "proto/uint128.proto", + "proto/tap_aggregator.proto", + "proto/v2.proto", + ], + &["proto"], + )?; Ok(()) } From c0c41ebb546655a1bb7894992883452aacad3b83 Mon Sep 17 00:00:00 2001 From: Joseph Livesey Date: Fri, 15 Aug 2025 07:43:27 -0400 Subject: [PATCH 2/2] build: remove unused dependencies Signed-off-by: Joseph Livesey --- tap_core/Cargo.toml | 1 - tap_eip712_message/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/tap_core/Cargo.toml b/tap_core/Cargo.toml index e7893db..5c969e4 100644 --- a/tap_core/Cargo.toml +++ b/tap_core/Cargo.toml @@ -19,7 +19,6 @@ thiserror.workspace = true tokio.workspace = true [dev-dependencies] -criterion.workspace = true insta.workspace = true rstest.workspace = true serde_json.workspace = true diff --git a/tap_eip712_message/Cargo.toml b/tap_eip712_message/Cargo.toml index fcd04a2..636ccce 100644 --- a/tap_eip712_message/Cargo.toml +++ b/tap_eip712_message/Cargo.toml @@ -11,6 +11,5 @@ serde.workspace = true thegraph-core.workspace = true thiserror.workspace = true - [dev-dependencies] tap_graph.workspace = true