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

deps!: Update multiaddr & multihash to 0.17.0 #3196

Merged
merged 8 commits into from
Dec 20, 2022
17 changes: 14 additions & 3 deletions CHANGELOG.md
Expand Up @@ -74,11 +74,22 @@
- Update to [`libp2p-metrics` `v0.12.0`](misc/metrics/CHANGELOG.md#0120).

- Update to [`libp2p-swarm` `v0.42.0`](swarm/CHANGELOG.md#0420).

- Update to [`libp2p-mdns` `v0.43.0`](protocols/mdns/CHANGELOG.md#0430).

- Update to [`libp2p-gossipsub` `v0.44.0`](protocols/gossipsub/CHANGELOG.md#0440).


- Update to [`libp2p-yamux` `v0.43.0`](muxers/yamux/CHANGELOG.md#0430).

- Update to [`libp2p-mplex` `v0.39.0`](muxers/mplex/CHANGELOG.md#0390).

- Update to [`libp2p-wasm-ext` `v0.39.0`](transports/wasm-ext/CHANGELOG.md#0390).

- Update to [`libp2p-plaintext` `v0.39.0`](transports/plaintext/CHANGELOG.md#0390).

- Update to [`libp2p-noise` `v0.42.0`](transports/noise/CHANGELOG.md#0420).

- Update to [`libp2p-core` `v0.39.0`](core/CHANGELOG.md#0390).

[PR 3191]: https://github.com/libp2p/rust-libp2p/pull/3191

Expand Down
28 changes: 14 additions & 14 deletions Cargo.toml
Expand Up @@ -93,38 +93,38 @@ getrandom = "0.2.3" # Explicit dependency to be used in `wasm-bindgen` feature
instant = "0.1.11" # Explicit dependency to be used in `wasm-bindgen` feature

libp2p-autonat = { version = "0.10.0", path = "protocols/autonat", optional = true }
libp2p-core = { version = "0.38.0", path = "core" }
libp2p-core = { version = "0.39.0", path = "core" }
libp2p-dcutr = { version = "0.9.0", path = "protocols/dcutr", optional = true }
libp2p-floodsub = { version = "0.42.0", path = "protocols/floodsub", optional = true }
libp2p-identify = { version = "0.42.0", path = "protocols/identify", optional = true }
libp2p-kad = { version = "0.43.0", path = "protocols/kad", optional = true }
libp2p-metrics = { version = "0.12.0", path = "misc/metrics", optional = true }
libp2p-mplex = { version = "0.38.0", path = "muxers/mplex", optional = true }
libp2p-noise = { version = "0.41.0", path = "transports/noise", optional = true }
libp2p-mplex = { version = "0.39.0", path = "muxers/mplex", optional = true }
libp2p-noise = { version = "0.42.0", path = "transports/noise", optional = true }
libp2p-ping = { version = "0.42.0", path = "protocols/ping", optional = true }
libp2p-plaintext = { version = "0.38.0", path = "transports/plaintext", optional = true }
libp2p-plaintext = { version = "0.39.0", path = "transports/plaintext", optional = true }
libp2p-pnet = { version = "0.22.2", path = "transports/pnet", optional = true }
libp2p-relay = { version = "0.15.0", path = "protocols/relay", optional = true }
libp2p-rendezvous = { version = "0.12.0", path = "protocols/rendezvous", optional = true }
libp2p-request-response = { version = "0.24.0", path = "protocols/request-response", optional = true }
libp2p-swarm = { version = "0.42.0", path = "swarm" }
libp2p-uds = { version = "0.37.0", path = "transports/uds", optional = true }
libp2p-wasm-ext = { version = "0.38.0", path = "transports/wasm-ext", optional = true }
libp2p-yamux = { version = "0.42.0", path = "muxers/yamux", optional = true }
multiaddr = { version = "0.16.0" }
libp2p-wasm-ext = { version = "0.39.0", path = "transports/wasm-ext", optional = true }
libp2p-yamux = { version = "0.43.0", path = "muxers/yamux", optional = true }
multiaddr = { version = "0.17.0" }
parking_lot = "0.12.0"
pin-project = "1.0.0"
smallvec = "1.6.1"

[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
libp2p-deflate = { version = "0.38.0", path = "transports/deflate", optional = true }
libp2p-dns = { version = "0.38.0", path = "transports/dns", optional = true }
libp2p-deflate = { version = "0.39.0", path = "transports/deflate", optional = true }
libp2p-dns = { version = "0.39.0", path = "transports/dns", optional = true }
libp2p-mdns = { version = "0.43.0", path = "protocols/mdns", optional = true }
libp2p-quic = { version = "0.7.0-alpha", path = "transports/quic", optional = true }
libp2p-tcp = { version = "0.38.0", path = "transports/tcp", optional = true }
libp2p-tls = { version = "0.1.0-alpha", path = "transports/tls", optional = true }
libp2p-webrtc = { version = "0.4.0-alpha", path = "transports/webrtc", optional = true }
libp2p-websocket = { version = "0.40.0", path = "transports/websocket", optional = true }
libp2p-quic = { version = "0.7.0-alpha.2", path = "transports/quic", optional = true }
libp2p-tcp = { version = "0.39.0", path = "transports/tcp", optional = true }
libp2p-tls = { version = "0.1.0-alpha.2", path = "transports/tls", optional = true }
libp2p-webrtc = { version = "0.4.0-alpha.2", path = "transports/webrtc", optional = true }
libp2p-websocket = { version = "0.41.0", path = "transports/websocket", optional = true }

[target.'cfg(not(target_os = "unknown"))'.dependencies]
libp2p-gossipsub = { version = "0.44.0", path = "protocols/gossipsub", optional = true }
Expand Down
10 changes: 5 additions & 5 deletions core/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-core"
edition = "2021"
rust-version = "1.60.0"
description = "Core traits and structs of libp2p"
version = "0.38.0"
version = "0.39.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -21,8 +21,8 @@ futures-timer = "3"
instant = "0.1.11"
libsecp256k1 = { version = "0.7.0", optional = true }
log = "0.4"
multiaddr = { version = "0.16.0" }
multihash = { version = "0.16", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multiaddr = { version = "0.17.0" }
mxinden marked this conversation as resolved.
Show resolved Hide resolved
multihash = { version = "0.17.0", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multistream-select = { version = "0.12.1", path = "../misc/multistream-select" }
p256 = { version = "0.11.1", default-features = false, features = ["ecdsa", "std"], optional = true }
parking_lot = "0.12.0"
Expand All @@ -49,7 +49,7 @@ base64 = "0.13.0"
criterion = "0.4"
libp2p-mplex = { path = "../muxers/mplex" }
libp2p-noise = { path = "../transports/noise" }
multihash = { version = "0.16", default-features = false, features = ["arb"] }
multihash = { version = "0.17.0", default-features = false, features = ["arb"] }
quickcheck = { package = "quickcheck-ext", path = "../misc/quickcheck-ext" }
rmp-serde = "1.0"
serde_json = "1.0"
Expand All @@ -67,7 +67,7 @@ serde = ["multihash/serde-codec", "dep:serde"]
name = "peer_id"
harness = false

# Passing arguments to the docsrs builder in order to properly document cfg's.
# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion misc/keygen/Cargo.toml
Expand Up @@ -14,5 +14,5 @@ clap = { version = "4.0.13", features = ["derive"] }
zeroize = "1"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
base64 = "0.13.0"
2 changes: 2 additions & 0 deletions misc/metrics/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.12.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Add `connections_establishment_duration` metric. See [PR 3134].

- Update to `libp2p-dcutr` `v0.9.0`.
Expand Down
2 changes: 1 addition & 1 deletion misc/metrics/Cargo.toml
Expand Up @@ -19,7 +19,7 @@ relay = ["libp2p-relay"]
dcutr = ["libp2p-dcutr"]

[dependencies]
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-dcutr = { version = "0.9.0", path = "../../protocols/dcutr", optional = true }
libp2p-identify = { version = "0.42.0", path = "../../protocols/identify", optional = true }
libp2p-kad = { version = "0.43.0", path = "../../protocols/kad", optional = true }
Expand Down
4 changes: 4 additions & 0 deletions muxers/mplex/CHANGELOG.md
@@ -1,3 +1,7 @@
# 0.39.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

# 0.38.0

- Update to `libp2p-core` `v0.38.0`.
Expand Down
4 changes: 2 additions & 2 deletions muxers/mplex/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-mplex"
edition = "2021"
rust-version = "1.60.0"
description = "Mplex multiplexing protocol for libp2p"
version = "0.38.0"
version = "0.39.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
bytes = "1"
futures = "0.3.1"
asynchronous-codec = "0.6"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
log = "0.4"
nohash-hasher = "0.2"
parking_lot = "0.12"
Expand Down
4 changes: 4 additions & 0 deletions muxers/yamux/CHANGELOG.md
@@ -1,3 +1,7 @@
# 0.43.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

# 0.42.0

- Update to `libp2p-core` `v0.38.0`.
Expand Down
4 changes: 2 additions & 2 deletions muxers/yamux/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-yamux"
edition = "2021"
rust-version = "1.60.0"
description = "Yamux multiplexing protocol for libp2p"
version = "0.42.0"
version = "0.43.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand All @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]

[dependencies]
futures = "0.3.1"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
parking_lot = "0.12"
thiserror = "1.0"
yamux = "0.10.0"
Expand Down
2 changes: 2 additions & 0 deletions protocols/autonat/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.10.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Require the node's local `PeerId` to be passed into the constructor of `libp2p_autonat::Behaviour`. See [PR 3153].

- Update to `libp2p-request-response` `v0.24.0`.
Expand Down
2 changes: 1 addition & 1 deletion protocols/autonat/Cargo.toml
Expand Up @@ -18,7 +18,7 @@ async-trait = "0.1"
futures = "0.3"
futures-timer = "3.0"
instant = "0.1"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
libp2p-request-response = { version = "0.24.0", path = "../request-response" }
log = "0.4"
Expand Down
2 changes: 2 additions & 0 deletions protocols/dcutr/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.9.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

- Declare `InboundUpgradeError` and `OutboundUpgradeError` as type aliases instead of renames.
Expand Down
2 changes: 1 addition & 1 deletion protocols/dcutr/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ either = "1.6.0"
futures = "0.3.1"
futures-timer = "3.0"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4"
prost-codec = { version = "0.3", path = "../../misc/prost-codec" }
Expand Down
2 changes: 2 additions & 0 deletions protocols/floodsub/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.42.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

- Read and write protocols messages via `prost-codec`. See [PR 3224].
Expand Down
2 changes: 1 addition & 1 deletion protocols/floodsub/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ asynchronous-codec = "0.6"
cuckoofilter = "0.5.0"
fnv = "1.0"
futures = "0.3.1"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4"
prost = "0.11"
Expand Down
2 changes: 2 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.44.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

# 0.43.0
Expand Down
2 changes: 1 addition & 1 deletion protocols/gossipsub/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]

[dependencies]
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
bytes = "1.0"
byteorder = "1.3.4"
fnv = "1.0.7"
Expand Down
2 changes: 2 additions & 0 deletions protocols/identify/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.42.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Move I/O from `Behaviour` to `Handler`. Handle `Behaviour`'s Identify and Push requests independently by incoming order,
previously Push requests were prioritized. see [PR 3208].

Expand Down
2 changes: 1 addition & 1 deletion protocols/identify/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
asynchronous-codec = "0.6"
futures = "0.3.1"
futures-timer = "3.0.2"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4.1"
lru = "0.8.0"
Expand Down
2 changes: 2 additions & 0 deletions protocols/kad/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.43.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

# 0.42.0
Expand Down
2 changes: 1 addition & 1 deletion protocols/kad/Cargo.toml
Expand Up @@ -18,7 +18,7 @@ fnv = "1.0"
asynchronous-codec = "0.6"
futures = "0.3.1"
log = "0.4"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
prost = "0.11"
rand = "0.8"
Expand Down
2 changes: 2 additions & 0 deletions protocols/mdns/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.43.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Require the node's local `PeerId` to be passed into the constructor of `libp2p_mdns::Behaviour`. See [PR 3153].

- Update to `libp2p-swarm` `v0.42.0`.
Expand Down
2 changes: 1 addition & 1 deletion protocols/mdns/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ async-io = { version = "1.3.1", optional = true }
data-encoding = "2.3.2"
futures = "0.3.13"
if-watch = "3.0.0"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4.14"
rand = "0.8.3"
Expand Down
2 changes: 2 additions & 0 deletions protocols/ping/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.42.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

# 0.41.0
Expand Down
2 changes: 1 addition & 1 deletion protocols/ping/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
futures = "0.3.1"
futures-timer = "3.0.2"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4.1"
rand = "0.8"
Expand Down
2 changes: 2 additions & 0 deletions protocols/relay/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.15.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

# 0.14.0
Expand Down
2 changes: 1 addition & 1 deletion protocols/relay/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ either = "1.6.0"
futures = "0.3.1"
futures-timer = "3"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4"
pin-project = "1"
Expand Down
2 changes: 2 additions & 0 deletions protocols/rendezvous/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.12.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Update to `libp2p-swarm` `v0.42.0`.

# 0.11.0
Expand Down
2 changes: 1 addition & 1 deletion protocols/rendezvous/Cargo.toml
Expand Up @@ -16,7 +16,7 @@ bimap = "0.6.1"
futures = { version = "0.3", default-features = false, features = ["std"] }
futures-timer = "3.0.2"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4"
prost = "0.11"
Expand Down
2 changes: 2 additions & 0 deletions protocols/request-response/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.24.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Rename types as per [discussion 2174].
`RequestResponse` has been renamed to `Behaviour`.
The `RequestResponse` prefix has been removed from various types like `RequestResponseEvent`.
Expand Down
2 changes: 1 addition & 1 deletion protocols/request-response/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ async-trait = "0.1"
bytes = "1"
futures = "0.3.1"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../../core" }
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4.11"
rand = "0.8"
Expand Down
2 changes: 2 additions & 0 deletions swarm/CHANGELOG.md
@@ -1,5 +1,7 @@
# 0.42.0 [unreleased]

- Update to `libp2p-core` `v0.39.0`.

- Removed deprecated Swarm constructors. For transition notes see [0.41.0](#0.41.0). See [PR 3170].
- Deprecate functions on `PollParameters` in preparation for `PollParameters` to be removed entirely eventually. See [PR 3153].

Expand Down
2 changes: 1 addition & 1 deletion swarm/Cargo.toml
Expand Up @@ -16,7 +16,7 @@ fnv = "1.0"
futures = "0.3.1"
futures-timer = "3.0.2"
instant = "0.1.11"
libp2p-core = { version = "0.38.0", path = "../core" }
libp2p-core = { version = "0.39.0", path = "../core" }
libp2p-swarm-derive = { version = "0.31.0", path = "../swarm-derive", optional = true }
log = "0.4"
pin-project = "1.0.0"
Expand Down