From 13f2342edd70d83377d620385610bc8dc859b64b Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 18 Jan 2024 11:43:37 +0000
Subject: [PATCH] Bump prost from 0.11.9 to 0.12.3 (#2976)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [prost](https://github.com/tokio-rs/prost) from 0.11.9 to 0.12.3.
Commits
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore ` will
remove the ignore condition of the specified dependency and ignore
conditions
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dónal Murray
---
Cargo.lock | 39 +++++++++++++++----
.../client/authority-discovery/Cargo.toml | 2 +-
substrate/client/network/bitswap/Cargo.toml | 2 +-
substrate/client/network/light/Cargo.toml | 2 +-
substrate/client/network/sync/Cargo.toml | 2 +-
.../network/sync/src/block_request_handler.rs | 2 +-
6 files changed, 36 insertions(+), 13 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index b6f69c2daa..87a2dad754 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14213,7 +14213,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd"
dependencies = [
"bytes",
- "prost-derive",
+ "prost-derive 0.11.9",
+]
+
+[[package]]
+name = "prost"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a"
+dependencies = [
+ "bytes",
+ "prost-derive 0.12.3",
]
[[package]]
@@ -14230,7 +14240,7 @@ dependencies = [
"multimap",
"petgraph",
"prettyplease 0.1.25",
- "prost",
+ "prost 0.11.9",
"prost-types",
"regex",
"syn 1.0.109",
@@ -14251,13 +14261,26 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "prost-derive"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e"
+dependencies = [
+ "anyhow",
+ "itertools 0.11.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.48",
+]
+
[[package]]
name = "prost-types"
version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13"
dependencies = [
- "prost",
+ "prost 0.11.9",
]
[[package]]
@@ -14280,7 +14303,7 @@ dependencies = [
"libflate",
"log",
"names",
- "prost",
+ "prost 0.11.9",
"reqwest",
"thiserror",
"url",
@@ -15357,7 +15380,7 @@ dependencies = [
"multihash 0.18.1",
"multihash-codetable",
"parity-scale-codec",
- "prost",
+ "prost 0.12.3",
"prost-build",
"quickcheck",
"rand 0.8.5",
@@ -16116,7 +16139,7 @@ dependencies = [
"futures",
"libp2p-identity",
"log",
- "prost",
+ "prost 0.12.3",
"prost-build",
"sc-block-builder",
"sc-client-api",
@@ -16183,7 +16206,7 @@ dependencies = [
"libp2p-identity",
"log",
"parity-scale-codec",
- "prost",
+ "prost 0.12.3",
"prost-build",
"sc-client-api",
"sc-network",
@@ -16225,7 +16248,7 @@ dependencies = [
"log",
"mockall",
"parity-scale-codec",
- "prost",
+ "prost 0.12.3",
"prost-build",
"quickcheck",
"sc-block-builder",
diff --git a/substrate/client/authority-discovery/Cargo.toml b/substrate/client/authority-discovery/Cargo.toml
index a8a28a501e..e7aead99c0 100644
--- a/substrate/client/authority-discovery/Cargo.toml
+++ b/substrate/client/authority-discovery/Cargo.toml
@@ -30,7 +30,7 @@ multihash = { version = "0.18.1", default-features = false, features = [
"std",
] }
log = "0.4.17"
-prost = "0.11"
+prost = "0.12"
rand = "0.8.5"
thiserror = "1.0"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus" }
diff --git a/substrate/client/network/bitswap/Cargo.toml b/substrate/client/network/bitswap/Cargo.toml
index cc919d2977..b004c03e02 100644
--- a/substrate/client/network/bitswap/Cargo.toml
+++ b/substrate/client/network/bitswap/Cargo.toml
@@ -24,7 +24,7 @@ cid = "0.9.0"
futures = "0.3.21"
libp2p-identity = { version = "0.1.3", features = ["peerid"] }
log = "0.4.17"
-prost = "0.11"
+prost = "0.12"
thiserror = "1.0"
unsigned-varint = { version = "0.7.1", features = ["asynchronous_codec", "futures"] }
sc-client-api = { path = "../../api" }
diff --git a/substrate/client/network/light/Cargo.toml b/substrate/client/network/light/Cargo.toml
index c75d14f0de..d59fde5643 100644
--- a/substrate/client/network/light/Cargo.toml
+++ b/substrate/client/network/light/Cargo.toml
@@ -27,7 +27,7 @@ codec = { package = "parity-scale-codec", version = "3.6.1", features = [
futures = "0.3.21"
libp2p-identity = { version = "0.1.3", features = ["peerid"] }
log = "0.4.16"
-prost = "0.11"
+prost = "0.12"
sp-blockchain = { path = "../../../primitives/blockchain" }
sc-client-api = { path = "../../api" }
sc-network = { path = ".." }
diff --git a/substrate/client/network/sync/Cargo.toml b/substrate/client/network/sync/Cargo.toml
index dd993e7a3d..abcb4cc8e4 100644
--- a/substrate/client/network/sync/Cargo.toml
+++ b/substrate/client/network/sync/Cargo.toml
@@ -28,7 +28,7 @@ futures-timer = "3.0.2"
libp2p = "0.51.4"
log = "0.4.17"
mockall = "0.11.3"
-prost = "0.11"
+prost = "0.12"
schnellru = "0.2.1"
smallvec = "1.11.0"
thiserror = "1.0"
diff --git a/substrate/client/network/sync/src/block_request_handler.rs b/substrate/client/network/sync/src/block_request_handler.rs
index f2af7d2178..7dfa76278b 100644
--- a/substrate/client/network/sync/src/block_request_handler.rs
+++ b/substrate/client/network/sync/src/block_request_handler.rs
@@ -228,7 +228,7 @@ where
};
let direction =
- Direction::from_i32(request.direction).ok_or(HandleRequestError::ParseDirection)?;
+ i32::try_into(request.direction).map_err(|_| HandleRequestError::ParseDirection)?;
let attributes = BlockAttributes::from_be_u32(request.fields)?;