From 2081855e026cbb8e19ced6b0e2aae67b0de379f1 Mon Sep 17 00:00:00 2001 From: Sydhds Date: Tue, 8 Oct 2024 16:53:39 +0200 Subject: [PATCH] Update tonic (0.12.3) & prost (0.13.3) (#338) * Update tonic (0.12.3) & prost (0.13.3) * Update massa-proto-rs to branch mainnet_2_3 --- Cargo.lock | 31 +++++++++++++++++++------------ Cargo.toml | 7 ++++--- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 63fc2f76..7962b99f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1170,13 +1170,14 @@ dependencies = [ [[package]] name = "massa-proto-rs" version = "0.1.0" -source = "git+https://github.com/massalabs/massa-proto-rs.git?rev=38950875a7aa406fedc4f0b8336864e5ff290f2c#38950875a7aa406fedc4f0b8336864e5ff290f2c" +source = "git+https://github.com/massalabs/massa-proto-rs.git?branch=mainnet_2_3#860785129328e3132a020da1eab1a677e8eeea14" dependencies = [ "glob", "prost", "prost-build", "prost-types", "tonic-build", + "tower-service", ] [[package]] @@ -1512,9 +1513,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.3" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f" dependencies = [ "bytes", "prost-derive", @@ -1522,9 +1523,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.12.3" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c55e02e35260070b6f716a2423c2ff1c3bb1642ddca6f99e1f26d06268a0e2d2" +checksum = "0c1318b19085f08681016926435853bbf7858f9c082d0999b80550ff5d9abe15" dependencies = [ "bytes", "heck", @@ -1539,14 +1540,13 @@ dependencies = [ "regex", "syn 2.0.75", "tempfile", - "which 4.4.2", ] [[package]] name = "prost-derive" -version = "0.12.3" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5" dependencies = [ "anyhow", "itertools", @@ -1557,9 +1557,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.12.3" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" +checksum = "4759aa0d3a6232fb8dbdb97b61de2c20047c68aca932c7ed76da9d788508d670" dependencies = [ "prost", ] @@ -2197,17 +2197,24 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.10.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889" +checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11" dependencies = [ "prettyplease", "proc-macro2", "prost-build", + "prost-types", "quote", "syn 2.0.75", ] +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + [[package]] name = "tracing" version = "0.1.40" diff --git a/Cargo.toml b/Cargo.toml index 7bf748e5..9c75cd73 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,12 +11,13 @@ chrono = { version = "=0.4", features = ["clock"], default-features = false } displaydoc = "0.2" function_name = "0.3" loupe = "0.1" -massa-proto-rs = { git = "https://github.com/massalabs/massa-proto-rs.git", rev = "38950875a7aa406fedc4f0b8336864e5ff290f2c" } +massa-proto-rs = { git = "https://github.com/massalabs/massa-proto-rs.git", branch = "mainnet_2_3" } +# massa-proto-rs = { path = "../massa-proto-rs" } more-asserts = "0.3" num_enum = "0.7" parking_lot = "0.12" -prost = "=0.12" -prost-types = "=0.12" +prost = "=0.13" +prost-types = "=0.13" rand = "=0.8" # for gas_calibration middleware regex = "1"