Skip to content

Commit a027c8b

Browse files
authored
Merge pull request #318 from semiotic-ai/suchapalaver/build/update-tonic-prost-dependencies
build: update tonic prost dependencies and remove unused
2 parents 44626ee + c0c41eb commit a027c8b

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jsonrpsee-core = "0.25.1"
3737
lazy_static = "1.5.0"
3838
log = "0.4.27"
3939
prometheus = "0.14.0"
40-
prost = "0.13.5"
40+
prost = "0.14.1"
4141
rand = "0.9.1"
4242
rayon = "1.10.0"
4343
rdkafka = { version = "0.37.0", features = ["tokio", "sasl"] }
@@ -53,7 +53,8 @@ tap_receipt = { version = "1.1.2", path = "tap_receipt" }
5353
thegraph-core = "0.15.1"
5454
thiserror = "2.0.12"
5555
tokio = { version = "1.44.2", features = ["macros", "signal"] }
56-
tonic = { version = "0.13.0", features = ["transport", "zstd"] }
57-
tonic-build = "0.13.0"
56+
tonic = { version = "0.14.1", features = ["transport", "zstd"] }
57+
tonic-build = "0.14.1"
58+
tonic-prost-build = "0.14.1"
5859
tower = { version = "0.5.2", features = ["util", "steer"] }
5960
tracing-subscriber = "0.3.19"

tap_aggregator/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ tap_graph.workspace = true
3636
thegraph-core = { workspace = true, features = ["alloy-eip712"] }
3737
tokio.workspace = true
3838
tonic.workspace = true
39+
tonic-prost = "0.14.1"
3940
tower = { workspace = true, features = ["util", "steer", "limit"] }
4041
tracing-subscriber.workspace = true
4142

4243
[build-dependencies]
4344
tonic-build.workspace = true
45+
tonic-prost-build.workspace = true
4446

4547
[dev-dependencies]
4648
rand.workspace = true

tap_aggregator/build.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
66
let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR not set by Cargo");
77
println!("OUT_DIR: {out_dir}"); // This should print the output directory
88

9-
tonic_build::configure().compile_protos(
10-
&[
11-
"proto/uint128.proto",
12-
"proto/tap_aggregator.proto",
13-
"proto/v2.proto",
14-
],
15-
&["proto"],
16-
)?;
9+
tonic_prost_build::configure()
10+
.build_server(true)
11+
.compile_protos(
12+
&[
13+
"proto/uint128.proto",
14+
"proto/tap_aggregator.proto",
15+
"proto/v2.proto",
16+
],
17+
&["proto"],
18+
)?;
1719

1820
Ok(())
1921
}

tap_core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ thiserror.workspace = true
1919
tokio.workspace = true
2020

2121
[dev-dependencies]
22-
criterion.workspace = true
2322
insta.workspace = true
2423
rstest.workspace = true
2524
serde_json.workspace = true

tap_eip712_message/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ serde.workspace = true
1111
thegraph-core.workspace = true
1212
thiserror.workspace = true
1313

14-
1514
[dev-dependencies]
1615
tap_graph.workspace = true

0 commit comments

Comments
 (0)