From 6a9fa3d93008d67ef62eff5b56d5aac3f340fd09 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Aug 2022 08:49:09 +0200 Subject: [PATCH] build(deps): Update prost requirement from 0.10 to 0.11 (#2788) * build(deps): Update prost-build requirement from 0.10 to 0.11 Updates the requirements on [prost-build](https://github.com/tokio-rs/prost) to permit the latest version. - [Release notes](https://github.com/tokio-rs/prost/releases) - [Commits](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: prost-build dependency-type: direct:production ... Signed-off-by: dependabot[bot] * build(deps): Update prost requirement from 0.10 to 0.11 Updates the requirements on [prost](https://github.com/tokio-rs/prost) to permit the latest version. - [Release notes](https://github.com/tokio-rs/prost/releases) - [Commits](https://github.com/tokio-rs/prost/compare/v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: prost dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 15 +++++++++++++++ core/Cargo.toml | 4 ++-- misc/prost-codec/CHANGELOG.md | 5 +++++ misc/prost-codec/Cargo.toml | 6 +++--- protocols/autonat/Cargo.toml | 4 ++-- protocols/dcutr/Cargo.toml | 6 +++--- protocols/floodsub/Cargo.toml | 4 ++-- protocols/gossipsub/Cargo.toml | 4 ++-- protocols/identify/Cargo.toml | 6 +++--- protocols/kad/Cargo.toml | 4 ++-- protocols/relay/Cargo.toml | 6 +++--- protocols/rendezvous/Cargo.toml | 4 ++-- transports/noise/Cargo.toml | 4 ++-- transports/plaintext/Cargo.toml | 4 ++-- 14 files changed, 48 insertions(+), 28 deletions(-) create mode 100644 misc/prost-codec/CHANGELOG.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e97069e3a9..c1509406f8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@6720f05bc48b77f96918929a9019fb2203ff71f8 # v2.0.0 @@ -56,6 +59,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v3 - name: Install Rust ${{ matrix.toolchain }} @@ -91,6 +97,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 @@ -113,6 +122,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 @@ -139,6 +151,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 diff --git a/core/Cargo.toml b/core/Cargo.toml index 386dff09669..f0197b675d0 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -28,7 +28,7 @@ multistream-select = { version = "0.11", path = "../misc/multistream-select" } p256 = { version = "0.10.0", default-features = false, features = ["ecdsa"], optional = true } parking_lot = "0.12.0" pin-project = "1.0.0" -prost = "0.10" +prost = "0.11" rand = "0.8" rw-stream-sink = { version = "0.3.0", path = "../misc/rw-stream-sink" } sha2 = "0.10.0" @@ -56,7 +56,7 @@ rmp-serde = "1.0" serde_json = "1.0" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" [features] default = [ "secp256k1", "ecdsa" ] diff --git a/misc/prost-codec/CHANGELOG.md b/misc/prost-codec/CHANGELOG.md new file mode 100644 index 00000000000..af426fb1955 --- /dev/null +++ b/misc/prost-codec/CHANGELOG.md @@ -0,0 +1,5 @@ +# 0.2.0 [unreleased] + +- Update to prost(-build) `v0.11`. See [PR 2788]. + +[PR 2788]: https://github.com/libp2p/rust-libp2p/pull/2788/ \ No newline at end of file diff --git a/misc/prost-codec/Cargo.toml b/misc/prost-codec/Cargo.toml index 02969651acc..f4d1e90f844 100644 --- a/misc/prost-codec/Cargo.toml +++ b/misc/prost-codec/Cargo.toml @@ -3,7 +3,7 @@ name = "prost-codec" edition = "2021" rust-version = "1.56.1" description = "Asynchronous de-/encoding of Protobuf structs using asynchronous-codec, unsigned-varint and prost." -version = "0.1.0" +version = "0.2.0" authors = ["Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -13,9 +13,9 @@ categories = ["asynchronous"] [dependencies] asynchronous-codec = { version = "0.6" } bytes = { version = "1" } -prost = "0.10" +prost = "0.11" thiserror = "1.0" unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] } [dev-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index 44f3c2b894d..6ec668e4fdc 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" [dependencies] async-trait = "0.1" @@ -23,7 +23,7 @@ libp2p-swarm = { version = "0.38.0", path = "../../swarm" } libp2p-request-response = { version = "0.20.0", path = "../request-response" } log = "0.4" rand = "0.8" -prost = "0.10" +prost = "0.11" [dev-dependencies] async-std = { version = "1.10", features = ["attributes"] } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 6f8c4c284fd..3193df1bbe0 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -20,13 +20,13 @@ instant = "0.1.11" libp2p-core = { version = "0.35.0", path = "../../core" } libp2p-swarm = { version = "0.38.0", path = "../../swarm" } log = "0.4" -prost-codec = { version = "0.1", path = "../../misc/prost-codec" } -prost = "0.10" +prost-codec = { version = "0.2", path = "../../misc/prost-codec" } +prost = "0.11" thiserror = "1.0" void = "1" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" [dev-dependencies] env_logger = "0.8.3" diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index d240ef66d07..8c2631e5ce8 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -17,9 +17,9 @@ futures = "0.3.1" libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } libp2p-swarm = { version = "0.38.0", path = "../../swarm" } log = "0.4" -prost = "0.10" +prost = "0.11" rand = "0.7" smallvec = "1.6.1" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index da97500808d..5c7f2a16e8f 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -24,7 +24,7 @@ log = "0.4.11" sha2 = "0.10.0" base64 = "0.13.0" smallvec = "1.6.1" -prost = "0.10" +prost = "0.11" hex_fmt = "0.3.0" regex = "1.5.5" serde = { version = "1", optional = true, features = ["derive"] } @@ -45,4 +45,4 @@ hex = "0.4.2" derive_builder = "0.11.1" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 1b3341df3f8..9db09cd1bf2 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -18,8 +18,8 @@ libp2p-core = { version = "0.35.0", path = "../../core", default-features = fals libp2p-swarm = { version = "0.38.0", path = "../../swarm" } log = "0.4.1" lru = "0.7.2" -prost-codec = { version = "0.1", path = "../../misc/prost-codec" } -prost = "0.10" +prost-codec = { version = "0.2", path = "../../misc/prost-codec" } +prost = "0.11" smallvec = "1.6.1" thiserror = "1.0" void = "1.0" @@ -37,4 +37,4 @@ libp2p = { path = "../..", default-features = false, features = [ ]} [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index f33697f2e32..d1910dccbbb 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -20,7 +20,7 @@ futures = "0.3.1" log = "0.4" libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } libp2p-swarm = { version = "0.38.0", path = "../../swarm" } -prost = "0.10" +prost = "0.11" rand = "0.7.2" sha2 = "0.10.0" smallvec = "1.6.1" @@ -40,7 +40,7 @@ libp2p-yamux = { path = "../../muxers/yamux" } quickcheck = "0.9.0" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" [features] serde = ["_serde", "bytes/serde"] diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 817025842f8..4a7396f938b 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -21,8 +21,8 @@ libp2p-core = { version = "0.35.0", path = "../../core", default-features = fals libp2p-swarm = { version = "0.38.0", path = "../../swarm" } log = "0.4" pin-project = "1" -prost-codec = { version = "0.1", path = "../../misc/prost-codec" } -prost = "0.10" +prost-codec = { version = "0.2", path = "../../misc/prost-codec" } +prost = "0.11" rand = "0.8.4" smallvec = "1.6.1" static_assertions = "1" @@ -30,7 +30,7 @@ thiserror = "1.0" void = "1" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" [dev-dependencies] env_logger = "0.9.0" diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 745285b91bd..833fee1f19d 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] asynchronous-codec = "0.6" libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } libp2p-swarm = { version = "0.38.0", path = "../../swarm" } -prost = "0.10" +prost = "0.11" void = "1" log = "0.4" futures = { version = "0.3", default-features = false, features = ["std"] } @@ -34,4 +34,4 @@ rand = "0.8" tokio = { version = "1.15", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] } [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 171a89a4715..708b3eb286e 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -15,7 +15,7 @@ futures = "0.3.1" lazy_static = "1.2" libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } log = "0.4" -prost = "0.10" +prost = "0.11" rand = "0.8.3" sha2 = "0.10.0" static_assertions = "1" @@ -36,4 +36,4 @@ quickcheck = "0.9.0" sodiumoxide = "0.2.5" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11" diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index c8cd9395da0..354782d9253 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -16,7 +16,7 @@ futures = "0.3.1" asynchronous-codec = "0.6" libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } log = "0.4.8" -prost = "0.10" +prost = "0.11" unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] } void = "1.0.2" @@ -26,4 +26,4 @@ quickcheck = "0.9.0" rand = "0.7" [build-dependencies] -prost-build = "0.10" +prost-build = "0.11"