Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): Update prost requirement from 0.10 to 0.11 #2788

Merged
merged 8 commits into from Aug 16, 2022
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/Cargo.toml
Expand Up @@ -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"
Expand Down Expand Up @@ -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" ]
Expand Down
5 changes: 5 additions & 0 deletions 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/
6 changes: 3 additions & 3 deletions misc/prost-codec/Cargo.toml
Expand Up @@ -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 <mail@max-inden.de>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -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"
4 changes: 2 additions & 2 deletions protocols/autonat/Cargo.toml
Expand Up @@ -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"
Expand All @@ -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"] }
Expand Down
6 changes: 3 additions & 3 deletions protocols/dcutr/Cargo.toml
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions protocols/floodsub/Cargo.toml
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions protocols/gossipsub/Cargo.toml
Expand Up @@ -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"] }
Expand All @@ -45,4 +45,4 @@ hex = "0.4.2"
derive_builder = "0.11.1"

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
6 changes: 3 additions & 3 deletions protocols/identify/Cargo.toml
Expand Up @@ -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"
Expand All @@ -37,4 +37,4 @@ libp2p = { path = "../..", default-features = false, features = [
]}

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
4 changes: 2 additions & 2 deletions protocols/kad/Cargo.toml
Expand Up @@ -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"
Expand All @@ -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"]
6 changes: 3 additions & 3 deletions protocols/relay/Cargo.toml
Expand Up @@ -21,16 +21,16 @@ 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"
thiserror = "1.0"
void = "1"

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"

[dev-dependencies]
env_logger = "0.9.0"
Expand Down
4 changes: 2 additions & 2 deletions protocols/rendezvous/Cargo.toml
Expand Up @@ -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"] }
Expand All @@ -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"
4 changes: 2 additions & 2 deletions transports/noise/Cargo.toml
Expand Up @@ -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"
Expand All @@ -36,4 +36,4 @@ quickcheck = "0.9.0"
sodiumoxide = "0.2.5"

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
4 changes: 2 additions & 2 deletions transports/plaintext/Cargo.toml
Expand Up @@ -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"

Expand All @@ -26,4 +26,4 @@ quickcheck = "0.9.0"
rand = "0.7"

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"