From 0f59322204528d92923e0d93b99fc12f61a58e36 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 11:20:25 +1000 Subject: [PATCH 01/26] Expose `ecdsa` feature in top-level libp2p crate --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index a14405eff6b..110da7ca436 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,6 +67,7 @@ websocket = ["dep:libp2p-websocket"] yamux = ["dep:libp2p-yamux"] secp256k1 = ["libp2p-core/secp256k1"] rsa = ["libp2p-core/rsa"] +ecdsa = ["libp2p-core/ecdsa"] serde = ["libp2p-core/serde", "libp2p-kad?/serde", "libp2p-gossipsub?/serde"] [package.metadata.docs.rs] From 9d59408017f622a6c893bc3bfb8f49c0dd70a79c Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 11:28:56 +1000 Subject: [PATCH 02/26] Remove default feature from `libp2p-core` --- core/Cargo.toml | 2 +- misc/keygen/Cargo.toml | 2 +- misc/metrics/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 2 +- muxers/yamux/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/floodsub/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/mdns/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- swarm/Cargo.toml | 2 +- transports/deflate/Cargo.toml | 2 +- transports/dns/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/plaintext/Cargo.toml | 2 +- transports/tcp/Cargo.toml | 2 +- transports/uds/Cargo.toml | 2 +- transports/wasm-ext/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 0505ccd970d..d31989cb167 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -57,7 +57,7 @@ serde_json = "1.0" prost-build = "0.11" [features] -default = [ "secp256k1", "ecdsa" ] +default = [ ] secp256k1 = [ "libsecp256k1" ] ecdsa = [ "p256" ] rsa = [ "dep:ring" ] diff --git a/misc/keygen/Cargo.toml b/misc/keygen/Cargo.toml index 36e01709df9..e369f400128 100644 --- a/misc/keygen/Cargo.toml +++ b/misc/keygen/Cargo.toml @@ -13,5 +13,5 @@ clap = {version = "3.1.6", features = ["derive"]} zeroize = "1" serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" -libp2p-core = { path = "../../core", default-features = false, version = "0.36.0"} +libp2p-core = { path = "../../core", version = "0.36.0"} base64 = "0.13.0" diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 1c29fceec24..25570ce655f 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -19,7 +19,7 @@ relay = ["libp2p-relay"] dcutr = ["libp2p-dcutr"] [dependencies] -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-dcutr = { version = "0.6.0", path = "../../protocols/dcutr", optional = true } libp2p-identify = { version = "0.39.0", path = "../../protocols/identify", optional = true } libp2p-kad = { version = "0.41.0", path = "../../protocols/kad", optional = true } diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 0fcf1fcf352..68dbf372570 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] bytes = "1" futures = "0.3.1" asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4" nohash-hasher = "0.2" parking_lot = "0.12" diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 1ee7b4ae667..49e64ad6143 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } parking_lot = "0.12" thiserror = "1.0" yamux = "0.10.0" diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index 62b006ca2bc..b02a0e84f17 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -18,7 +18,7 @@ async-trait = "0.1" futures = "0.3" futures-timer = "3.0" instant = "0.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } libp2p-request-response = { version = "0.21.0", path = "../request-response" } log = "0.4" diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 155335763d4..5623143a554 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -17,7 +17,7 @@ either = "1.6.0" futures = "0.3.1" futures-timer = "3.0" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4" prost-codec = { version = "0.2", path = "../../misc/prost-codec" } diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index 58977415005..9352079b557 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] cuckoofilter = "0.5.0" fnv = "1.0" futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4" prost = "0.11" diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 2e69b0380dc..459d6b6129e 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] libp2p-swarm = { version = "0.39.0", path = "../../swarm" } -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } bytes = "1.0" byteorder = "1.3.4" fnv = "1.0.7" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index f147c5bb2c8..f46c361da46 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -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.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4.1" lru = "0.7.2" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index c01f64f387a..534b18ef2b4 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -18,7 +18,7 @@ fnv = "1.0" asynchronous-codec = "0.6" futures = "0.3.1" log = "0.4" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } prost = "0.11" rand = "0.7.2" diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 2ec4ac44958..420acdf7210 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -16,7 +16,7 @@ dns-parser = "0.8.0" futures = "0.3.13" if-watch = "1.1.1" lazy_static = "1.4.0" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4.14" rand = "0.8.3" diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 28eb91bab9b..759ff3c37bd 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -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.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4.1" rand = "0.7.2" diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 9e564825ccf..33930b1f0e1 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -17,7 +17,7 @@ either = "1.6.0" futures = "0.3.1" futures-timer = "3" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4" pin-project = "1" diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 3eee5c833e6..b7c38810ba3 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } prost = "0.11" void = "1" diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index e6e2c400dac..2501a4aaa2d 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -15,7 +15,7 @@ async-trait = "0.1" bytes = "1" futures = "0.3.1" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } libp2p-swarm = { version = "0.39.0", path = "../../swarm" } log = "0.4.11" rand = "0.7" diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index fe310b5e072..628bbc30cf9 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -16,7 +16,7 @@ fnv = "1.0" futures = "0.3.1" futures-timer = "3.0.2" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../core" } log = "0.4" pin-project = "1.0.0" rand = "0.7" diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index 298924c6caf..7d7ed2e3ace 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } flate2 = "1.0" [dev-dependencies] diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index 51c9b688c73..52390e471a8 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" async-std-resolver = { version = "0.21", optional = true } diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 8cd9db698b8..f199c257cbc 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -13,7 +13,7 @@ bytes = "1" curve25519-dalek = "3.0.0" futures = "0.3.1" lazy_static = "1.2" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4" prost = "0.11" rand = "0.8.3" diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index f250c2a4287..7358d8ca15a 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] bytes = "1" futures = "0.3.1" asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4.8" prost = "0.11" unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] } diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 948d9507f0a..69f7594e759 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -16,7 +16,7 @@ futures = "0.3.8" futures-timer = "3.0" if-watch = "2.0.0" libc = "0.2.80" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4.11" socket2 = { version = "0.4.0", features = ["all"] } tokio-crate = { package = "tokio", version = "1.19.0", default-features = false, features = ["net"], optional = true } diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index 3b7f1eb0a3f..fab2f7ac681 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [target.'cfg(all(unix, not(target_os = "emscripten")))'.dependencies] async-std = { version = "1.6.2", optional = true } -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" tokio = { version = "1.15", default-features = false, features = ["net"], optional = true } diff --git a/transports/wasm-ext/Cargo.toml b/transports/wasm-ext/Cargo.toml index 6c6a645c8c2..c226e0c4208 100644 --- a/transports/wasm-ext/Cargo.toml +++ b/transports/wasm-ext/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" js-sys = "0.3.50" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } parity-send-wrapper = "0.1.0" wasm-bindgen = "0.2.42" wasm-bindgen-futures = "0.4.4" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 44a971fafbc..d5dcc663b46 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] futures-rustls = "0.22" either = "1.5.3" futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.36.0", path = "../../core" } log = "0.4.8" parking_lot = "0.12.0" quicksink = "0.1" From 16a4692d5f07f751ef40850fff053df1cfea24dd Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 11:33:24 +1000 Subject: [PATCH 03/26] Always have the version first This makes search and replace operations work better. --- misc/keygen/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/keygen/Cargo.toml b/misc/keygen/Cargo.toml index e369f400128..d01106b8dfc 100644 --- a/misc/keygen/Cargo.toml +++ b/misc/keygen/Cargo.toml @@ -13,5 +13,5 @@ clap = {version = "3.1.6", features = ["derive"]} zeroize = "1" serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" -libp2p-core = { path = "../../core", version = "0.36.0"} +libp2p-core = { version = "0.36.0", path = "../../core" } base64 = "0.13.0" From ce0708af788f580132300a9129b3040b0d7a0857 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 11:56:06 +1000 Subject: [PATCH 04/26] Bump versions and add changelog entries --- CHANGELOG.md | 40 +++++++++++++++++++++++ Cargo.toml | 42 ++++++++++++------------- core/CHANGELOG.md | 7 +++++ core/Cargo.toml | 3 +- misc/keygen/Cargo.toml | 2 +- misc/metrics/CHANGELOG.md | 2 ++ misc/metrics/Cargo.toml | 14 ++++----- muxers/mplex/Cargo.toml | 4 +-- muxers/yamux/CHANGELOG.md | 4 +++ muxers/yamux/Cargo.toml | 4 +-- protocols/autonat/CHANGELOG.md | 4 +++ protocols/autonat/Cargo.toml | 8 ++--- protocols/dcutr/CHANGELOG.md | 4 +++ protocols/dcutr/Cargo.toml | 6 ++-- protocols/floodsub/CHANGELOG.md | 4 +++ protocols/floodsub/Cargo.toml | 6 ++-- protocols/gossipsub/CHANGELOG.md | 4 +++ protocols/gossipsub/Cargo.toml | 6 ++-- protocols/identify/CHANGELOG.md | 4 +++ protocols/identify/Cargo.toml | 6 ++-- protocols/kad/CHANGELOG.md | 2 ++ protocols/kad/Cargo.toml | 4 +-- protocols/mdns/CHANGELOG.md | 4 +++ protocols/mdns/Cargo.toml | 6 ++-- protocols/ping/CHANGELOG.md | 4 +++ protocols/ping/Cargo.toml | 6 ++-- protocols/relay/CHANGELOG.md | 4 +++ protocols/relay/Cargo.toml | 6 ++-- protocols/rendezvous/CHANGELOG.md | 4 +++ protocols/rendezvous/Cargo.toml | 6 ++-- protocols/request-response/CHANGELOG.md | 4 +++ protocols/request-response/Cargo.toml | 6 ++-- swarm/CHANGELOG.md | 4 +++ swarm/Cargo.toml | 4 +-- transports/deflate/CHANGELOG.md | 4 +++ transports/deflate/Cargo.toml | 4 +-- transports/dns/CHANGELOG.md | 4 +++ transports/dns/Cargo.toml | 4 +-- transports/noise/CHANGELOG.md | 4 ++- transports/noise/Cargo.toml | 4 +-- transports/plaintext/CHANGELOG.md | 4 +++ transports/plaintext/Cargo.toml | 4 +-- transports/tcp/CHANGELOG.md | 2 ++ transports/tcp/Cargo.toml | 2 +- transports/uds/CHANGELOG.md | 4 +++ transports/uds/Cargo.toml | 4 +-- transports/wasm-ext/CHANGELOG.md | 4 +++ transports/wasm-ext/Cargo.toml | 4 +-- transports/websocket/CHANGELOG.md | 4 +++ transports/websocket/Cargo.toml | 4 +-- 50 files changed, 212 insertions(+), 86 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aa74dae1df..70cb012e874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,46 @@ - Update to [`libp2p-kad` `v0.41.0`](protocols/kad/CHANGELOG.md#0410). +- Update to [`libp2p-autonat` `v0.8.0`](protocols/autonat/CHANGELOG.md#0080). + +- Update to [`libp2p-dcutr` `v0.7.0`](protocols/dcutr/CHANGELOG.md#0070). + +- Update to [`libp2p-floodsub` `v0.40.0`](protocols/floodsub/CHANGELOG.md#0400). + +- Update to [`libp2p-identify` `v0.40.0`](protocols/identify/CHANGELOG.md#0400). + +- Update to [`libp2p-mplex` `v0.37.0`](muxers/mplex/CHANGELOG.md#0370). + +- Update to [`libp2p-yamux` `v0.41.0`](muxers/mplex/CHANGELOG.md#0410). + +- Update to [`libp2p-noise` `v0.40.0`](transports/noise/CHANGELOG.md#0400). + +- Update to [`libp2p-ping` `v0.40.0`](protocols/ping/CHANGELOG.md#0400). + +- Update to [`libp2p-plaintext` `v0.37.0`](transports/plaintext/CHANGELOG.md#0370). + +- Update to [`libp2p-relay` `v0.13.0`](protocols/relay/CHANGELOG.md#0130). + +- Update to [`libp2p-rendezvous` `v0.10.0`](protocols/rendezovus/CHANGELOG.md#0100). + +- Update to [`libp2p-request-response` `v0.22.0`](protocols/request-response/CHANGELOG.md#0220). + +- Update to [`libp2p-swarm` `v0.40.0`](swarm/CHANGELOG.md#0400). + +- Update to [`libp2p-uds` `v0.36.0`](transports/uds/CHANGELOG.md#0360). + +- Update to [`libp2p-wasm-ext` `v0.37.0`](transports/wasm-ext/CHANGELOG.md#0370). + +- Update to [`libp2p-deflate` `v0.37.0`](transports/deflate/CHANGELOG.md#0370). + +- Update to [`libp2p-dns` `v0.37.0`](transports/dns/CHANGELOG.md#0370). + +- Update to [`libp2p-mdns` `v0.41.0`](protocols/mdns/CHANGELOG.md#0410). + +- Update to [`libp2p-websocket` `v0.39.0`](transports/websocket/CHANGELOG.md#0390). + +- Update to [`libp2p-gossipsub` `v0.42.0`](protocols/gossipsub/CHANGELOG.md#0420). + # 0.48.0 - Update to [`libp2p-core` `v0.36.0`](core/CHANGELOG.md#0360). diff --git a/Cargo.toml b/Cargo.toml index 110da7ca436..247b42f9c53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,26 +81,26 @@ 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 lazy_static = "1.2" -libp2p-autonat = { version = "0.7.0", path = "protocols/autonat", optional = true } -libp2p-core = { version = "0.36.0", path = "core", default-features = false } -libp2p-dcutr = { version = "0.6.0", path = "protocols/dcutr", optional = true } -libp2p-floodsub = { version = "0.39.0", path = "protocols/floodsub", optional = true } -libp2p-identify = { version = "0.39.0", path = "protocols/identify", optional = true } +libp2p-autonat = { version = "0.8.0", path = "protocols/autonat", optional = true } +libp2p-core = { version = "0.37.0", path = "core" } +libp2p-dcutr = { version = "0.7.0", path = "protocols/dcutr", optional = true } +libp2p-floodsub = { version = "0.40.0", path = "protocols/floodsub", optional = true } +libp2p-identify = { version = "0.40.0", path = "protocols/identify", optional = true } libp2p-kad = { version = "0.41.0", path = "protocols/kad", optional = true } libp2p-metrics = { version = "0.10.0", path = "misc/metrics", optional = true } -libp2p-mplex = { version = "0.36.0", path = "muxers/mplex", optional = true } -libp2p-noise = { version = "0.39.1", path = "transports/noise", optional = true } -libp2p-ping = { version = "0.39.0", path = "protocols/ping", optional = true } -libp2p-plaintext = { version = "0.36.0", path = "transports/plaintext", optional = true } +libp2p-mplex = { version = "0.37.0", path = "muxers/mplex", optional = true } +libp2p-noise = { version = "0.40.0", path = "transports/noise", optional = true } +libp2p-ping = { version = "0.40.0", path = "protocols/ping", optional = true } +libp2p-plaintext = { version = "0.37.0", path = "transports/plaintext", optional = true } libp2p-pnet = { version = "0.22.0", path = "transports/pnet", optional = true } -libp2p-relay = { version = "0.12.0", path = "protocols/relay", optional = true } -libp2p-rendezvous = { version = "0.9.0", path = "protocols/rendezvous", optional = true } -libp2p-request-response = { version = "0.21.0", path = "protocols/request-response", optional = true } -libp2p-swarm = { version = "0.39.0", path = "swarm" } +libp2p-relay = { version = "0.13.0", path = "protocols/relay", optional = true } +libp2p-rendezvous = { version = "0.10.0", path = "protocols/rendezvous", optional = true } +libp2p-request-response = { version = "0.22.0", path = "protocols/request-response", optional = true } +libp2p-swarm = { version = "0.40.0", path = "swarm" } libp2p-swarm-derive = { version = "0.30.1", path = "swarm-derive" } -libp2p-uds = { version = "0.35.0", path = "transports/uds", optional = true } -libp2p-wasm-ext = { version = "0.36.0", path = "transports/wasm-ext", default-features = false, optional = true } -libp2p-yamux = { version = "0.40.0", path = "muxers/yamux", optional = true } +libp2p-uds = { version = "0.36.0", path = "transports/uds", optional = true } +libp2p-wasm-ext = { version = "0.37.0", path = "transports/wasm-ext", default-features = false, optional = true } +libp2p-yamux = { version = "0.41.0", path = "muxers/yamux", optional = true } multiaddr = { version = "0.14.0" } parking_lot = "0.12.0" pin-project = "1.0.0" @@ -108,14 +108,14 @@ rand = "0.7.3" # Explicit dependency to be used in `wasm-bindgen` feature smallvec = "1.6.1" [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies] -libp2p-deflate = { version = "0.36.0", path = "transports/deflate", optional = true } -libp2p-dns = { version = "0.36.0", path = "transports/dns", optional = true, default-features = false } -libp2p-mdns = { version = "0.40.0", path = "protocols/mdns", optional = true, default-features = false } +libp2p-deflate = { version = "0.37.0", path = "transports/deflate", optional = true } +libp2p-dns = { version = "0.37.0", path = "transports/dns", optional = true, default-features = false } +libp2p-mdns = { version = "0.41.0", path = "protocols/mdns", optional = true, default-features = false } libp2p-tcp = { version = "0.37.0", path = "transports/tcp", default-features = false, optional = true } -libp2p-websocket = { version = "0.38.0", path = "transports/websocket", optional = true } +libp2p-websocket = { version = "0.39.0", path = "transports/websocket", optional = true } [target.'cfg(not(target_os = "unknown"))'.dependencies] -libp2p-gossipsub = { version = "0.41.0", path = "protocols/gossipsub", optional = true } +libp2p-gossipsub = { version = "0.42.0", path = "protocols/gossipsub", optional = true } [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 4a5e07f14f8..38cee621db3 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,3 +1,10 @@ +# 0.37.0 [unreleased] + +- Remove default features. If you previously depended on `secp256k1` or `ecdsa` you need to enable these explicitly + now. See [PR XXXX]. + +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX + # 0.36.0 - Make RSA keypair support optional. To enable RSA support, `rsa` feature should be enabled. diff --git a/core/Cargo.toml b/core/Cargo.toml index d31989cb167..ee174e959b8 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-core" edition = "2021" rust-version = "1.56.1" description = "Core traits and structs of libp2p" -version = "0.36.0" +version = "0.37.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -57,7 +57,6 @@ serde_json = "1.0" prost-build = "0.11" [features] -default = [ ] secp256k1 = [ "libsecp256k1" ] ecdsa = [ "p256" ] rsa = [ "dep:ring" ] diff --git a/misc/keygen/Cargo.toml b/misc/keygen/Cargo.toml index d01106b8dfc..13b1ff38216 100644 --- a/misc/keygen/Cargo.toml +++ b/misc/keygen/Cargo.toml @@ -13,5 +13,5 @@ clap = {version = "3.1.6", features = ["derive"]} zeroize = "1" serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } base64 = "0.13.0" diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index 1b784ffa1f9..f544659db61 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-kad` `v0.41.0`. +- TODO: More entries + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 25570ce655f..3779c187648 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -19,17 +19,17 @@ relay = ["libp2p-relay"] dcutr = ["libp2p-dcutr"] [dependencies] -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-dcutr = { version = "0.6.0", path = "../../protocols/dcutr", optional = true } -libp2p-identify = { version = "0.39.0", path = "../../protocols/identify", optional = true } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-dcutr = { version = "0.7.0", path = "../../protocols/dcutr", optional = true } +libp2p-identify = { version = "0.40.0", path = "../../protocols/identify", optional = true } libp2p-kad = { version = "0.41.0", path = "../../protocols/kad", optional = true } -libp2p-ping = { version = "0.39.0", path = "../../protocols/ping", optional = true } -libp2p-relay = { version = "0.12.0", path = "../../protocols/relay", optional = true } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-ping = { version = "0.40.0", path = "../../protocols/ping", optional = true } +libp2p-relay = { version = "0.13.0", path = "../../protocols/relay", optional = true } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } prometheus-client = "0.18.0" [target.'cfg(not(target_os = "unknown"))'.dependencies] -libp2p-gossipsub = { version = "0.41.0", path = "../../protocols/gossipsub", optional = true } +libp2p-gossipsub = { version = "0.42.0", path = "../../protocols/gossipsub", optional = true } [dev-dependencies] log = "0.4.0" diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 68dbf372570..d887bc94508 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-mplex" edition = "2021" rust-version = "1.56.1" description = "Mplex multiplexing protocol for libp2p" -version = "0.36.0" +version = "0.37.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] bytes = "1" futures = "0.3.1" asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4" nohash-hasher = "0.2" parking_lot = "0.12" diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index 54eb19865a2..0c1404aefb4 100644 --- a/muxers/yamux/CHANGELOG.md +++ b/muxers/yamux/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.41.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.40.0 - Update to `libp2p-core` `v0.36.0` diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 49e64ad6143..ff1e1378b19 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-yamux" edition = "2021" rust-version = "1.56.1" description = "Yamux multiplexing protocol for libp2p" -version = "0.40.0" +version = "0.41.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } parking_lot = "0.12" thiserror = "1.0" yamux = "0.10.0" diff --git a/protocols/autonat/CHANGELOG.md b/protocols/autonat/CHANGELOG.md index 1b585e7ddf9..6616bfb3a58 100644 --- a/protocols/autonat/CHANGELOG.md +++ b/protocols/autonat/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.7.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index b02a0e84f17..c3c5cf2347f 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-autonat" edition = "2021" rust-version = "1.56.1" description = "NAT and firewall detection for libp2p" -version = "0.7.0" +version = "0.8.0" authors = ["David Craven ", "Elena Frank "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -18,9 +18,9 @@ async-trait = "0.1" futures = "0.3" futures-timer = "3.0" instant = "0.1" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } -libp2p-request-response = { version = "0.21.0", path = "../request-response" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } +libp2p-request-response = { version = "0.22.0", path = "../request-response" } log = "0.4" rand = "0.8" prost = "0.11" diff --git a/protocols/dcutr/CHANGELOG.md b/protocols/dcutr/CHANGELOG.md index f6742cf5581..16c21723dca 100644 --- a/protocols/dcutr/CHANGELOG.md +++ b/protocols/dcutr/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.7.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.6.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 5623143a554..1878cff1638 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-dcutr" edition = "2021" rust-version = "1.56.1" description = "Direct connection upgrade through relay" -version = "0.6.0" +version = "0.7.0" authors = ["Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -17,8 +17,8 @@ either = "1.6.0" futures = "0.3.1" futures-timer = "3.0" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4" prost-codec = { version = "0.2", path = "../../misc/prost-codec" } prost = "0.11" diff --git a/protocols/floodsub/CHANGELOG.md b/protocols/floodsub/CHANGELOG.md index 5a91e14642a..bbc7ef51bf2 100644 --- a/protocols/floodsub/CHANGELOG.md +++ b/protocols/floodsub/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.40.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index 9352079b557..dab95d42bf4 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-floodsub" edition = "2021" rust-version = "1.56.1" description = "Floodsub protocol for libp2p" -version = "0.39.0" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,8 +14,8 @@ categories = ["network-programming", "asynchronous"] cuckoofilter = "0.5.0" fnv = "1.0" futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4" prost = "0.11" rand = "0.7" diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index 1ba36ad6607..ed2a063f70b 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.42.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.41.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 459d6b6129e..bb5cb74cbb5 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-gossipsub" edition = "2021" rust-version = "1.56.1" description = "Gossipsub protocol for libp2p" -version = "0.41.0" +version = "0.42.0" authors = ["Age Manning "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -11,8 +11,8 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } bytes = "1.0" byteorder = "1.3.4" fnv = "1.0.7" diff --git a/protocols/identify/CHANGELOG.md b/protocols/identify/CHANGELOG.md index 1455966b091..58ae66d1d7e 100644 --- a/protocols/identify/CHANGELOG.md +++ b/protocols/identify/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.40.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index f46c361da46..ebfe82e02a9 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-identify" edition = "2021" rust-version = "1.56.1" description = "Nodes identifcation protocol for libp2p" -version = "0.39.0" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,8 +14,8 @@ categories = ["network-programming", "asynchronous"] asynchronous-codec = "0.6" futures = "0.3.1" futures-timer = "3.0.2" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4.1" lru = "0.7.2" prost-codec = { version = "0.2", path = "../../misc/prost-codec" } diff --git a/protocols/kad/CHANGELOG.md b/protocols/kad/CHANGELOG.md index 2f41a093019..f826151734f 100644 --- a/protocols/kad/CHANGELOG.md +++ b/protocols/kad/CHANGELOG.md @@ -3,6 +3,8 @@ - Remove deprecated `set_protocol_name()` from `KademliaConfig` & `KademliaProtocolConfig`. Use `set_protocol_names()` instead. See [PR 2866]. +- Update to `libp2p-core` `v0.37.0`. + [PR 2866]: https://github.com/libp2p/rust-libp2p/pull/2866 # 0.40.0 diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index 534b18ef2b4..ea54dce5ec7 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -18,8 +18,8 @@ fnv = "1.0" asynchronous-codec = "0.6" futures = "0.3.1" log = "0.4" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } prost = "0.11" rand = "0.7.2" sha2 = "0.10.0" diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index 2be2db4079b..00713cd5114 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.41.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.40.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 420acdf7210..73f0b8c6472 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -2,7 +2,7 @@ name = "libp2p-mdns" edition = "2021" rust-version = "1.56.1" -version = "0.40.0" +version = "0.41.0" description = "Implementation of the libp2p mDNS discovery method" authors = ["Parity Technologies "] license = "MIT" @@ -16,8 +16,8 @@ dns-parser = "0.8.0" futures = "0.3.13" if-watch = "1.1.1" lazy_static = "1.4.0" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4.14" rand = "0.8.3" smallvec = "1.6.1" diff --git a/protocols/ping/CHANGELOG.md b/protocols/ping/CHANGELOG.md index b1037ac1ef7..ad6696738a6 100644 --- a/protocols/ping/CHANGELOG.md +++ b/protocols/ping/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.40.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 759ff3c37bd..315273a53e5 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-ping" edition = "2021" rust-version = "1.56.1" description = "Ping protocol for libp2p" -version = "0.39.0" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,8 +14,8 @@ categories = ["network-programming", "asynchronous"] futures = "0.3.1" futures-timer = "3.0.2" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4.1" rand = "0.7.2" void = "1.0" diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index 1262a250880..95a48b13d56 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.13.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.12.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 33930b1f0e1..60ff89375b7 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-relay" edition = "2021" rust-version = "1.56.1" description = "Communications relaying for libp2p" -version = "0.12.0" +version = "0.13.0" authors = ["Parity Technologies ", "Max Inden "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -17,8 +17,8 @@ either = "1.6.0" futures = "0.3.1" futures-timer = "3" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4" pin-project = "1" prost-codec = { version = "0.2", path = "../../misc/prost-codec" } diff --git a/protocols/rendezvous/CHANGELOG.md b/protocols/rendezvous/CHANGELOG.md index edf55a5d420..e709564994c 100644 --- a/protocols/rendezvous/CHANGELOG.md +++ b/protocols/rendezvous/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.10.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index b7c38810ba3..170673f6575 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-rendezvous" edition = "2021" rust-version = "1.56.1" description = "Rendezvous protocol for libp2p" -version = "0.9.0" +version = "0.10.0" authors = ["The COMIT guys "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -12,8 +12,8 @@ categories = ["network-programming", "asynchronous"] [dependencies] asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } prost = "0.11" void = "1" log = "0.4" diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md index 2e7dd0f84d4..f537971cbc2 100644 --- a/protocols/request-response/CHANGELOG.md +++ b/protocols/request-response/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.21.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 2501a4aaa2d..065c620115e 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-request-response" edition = "2021" rust-version = "1.56.1" description = "Generic Request/Response Protocols" -version = "0.21.0" +version = "0.22.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -15,8 +15,8 @@ async-trait = "0.1" bytes = "1" futures = "0.3.1" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../../core" } -libp2p-swarm = { version = "0.39.0", path = "../../swarm" } +libp2p-core = { version = "0.37.0", path = "../../core" } +libp2p-swarm = { version = "0.40.0", path = "../../swarm" } log = "0.4.11" rand = "0.7" smallvec = "1.6.1" diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md index abf54657cda..baafa4eada7 100644 --- a/swarm/CHANGELOG.md +++ b/swarm/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.40.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.39.0 - Remove deprecated `NetworkBehaviourEventProcess`. See [libp2p-swarm v0.38.0 changelog entry] for diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index 628bbc30cf9..250bdb11ad6 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-swarm" edition = "2021" rust-version = "1.56.1" description = "The libp2p swarm" -version = "0.39.0" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -16,7 +16,7 @@ fnv = "1.0" futures = "0.3.1" futures-timer = "3.0.2" instant = "0.1.11" -libp2p-core = { version = "0.36.0", path = "../core" } +libp2p-core = { version = "0.37.0", path = "../core" } log = "0.4" pin-project = "1.0.0" rand = "0.7" diff --git a/transports/deflate/CHANGELOG.md b/transports/deflate/CHANGELOG.md index ead0f9cb68f..d7c58a6e4a9 100644 --- a/transports/deflate/CHANGELOG.md +++ b/transports/deflate/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.37.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index 7d7ed2e3ace..45e120557d7 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-deflate" edition = "2021" rust-version = "1.56.1" description = "Deflate encryption protocol for libp2p" -version = "0.36.0" +version = "0.37.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } flate2 = "1.0" [dev-dependencies] diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md index a6c46fa4191..8a8a438df2f 100644 --- a/transports/dns/CHANGELOG.md +++ b/transports/dns/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.37.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index 52390e471a8..f2b83d6b1bd 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-dns" edition = "2021" rust-version = "1.56.1" description = "DNS transport implementation for libp2p" -version = "0.36.0" +version = "0.37.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -11,7 +11,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" async-std-resolver = { version = "0.21", optional = true } diff --git a/transports/noise/CHANGELOG.md b/transports/noise/CHANGELOG.md index 1416aab4e30..5b5883861b8 100644 --- a/transports/noise/CHANGELOG.md +++ b/transports/noise/CHANGELOG.md @@ -1,4 +1,6 @@ -# 0.39.1 [unreleased] +# 0.40.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. - Introduce `NoiseAuthenticated::xx` constructor, assuming a X25519 DH key exchange. An XX key exchange and X25519 keys are the most common way of using noise in libp2p and thus deserve a convenience constructor. See [PR 2887]. diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index f199c257cbc..ff9388dd5ce 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-noise" edition = "2021" rust-version = "1.56.1" description = "Cryptographic handshake protocol using the noise framework." -version = "0.39.1" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -13,7 +13,7 @@ bytes = "1" curve25519-dalek = "3.0.0" futures = "0.3.1" lazy_static = "1.2" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4" prost = "0.11" rand = "0.8.3" diff --git a/transports/plaintext/CHANGELOG.md b/transports/plaintext/CHANGELOG.md index bb070580986..a0d21b8d1f3 100644 --- a/transports/plaintext/CHANGELOG.md +++ b/transports/plaintext/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.37.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index 7358d8ca15a..93f42675799 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-plaintext" edition = "2021" rust-version = "1.56.1" description = "Plaintext encryption dummy protocol for libp2p" -version = "0.36.0" +version = "0.37.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] bytes = "1" futures = "0.3.1" asynchronous-codec = "0.6" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.8" prost = "0.11" unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] } diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md index ff34ae49407..ad55cab9b55 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -3,6 +3,8 @@ - Update to `if-watch` `v2.0.0`. Simplify `IfWatcher` integration. Use `if_watch::IfWatcher` for all runtimes. See [PR 2813]. +- Update to `libp2p-core` `v0.37.0`. + [PR 2813]: https://github.com/libp2p/rust-libp2p/pull/2813 # 0.36.0 diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 69f7594e759..765576089d5 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -16,7 +16,7 @@ futures = "0.3.8" futures-timer = "3.0" if-watch = "2.0.0" libc = "0.2.80" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.11" socket2 = { version = "0.4.0", features = ["all"] } tokio-crate = { package = "tokio", version = "1.19.0", default-features = false, features = ["net"], optional = true } diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md index 78f759803ee..40503781bd6 100644 --- a/transports/uds/CHANGELOG.md +++ b/transports/uds/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.36.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.35.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index fab2f7ac681..0af45c835b0 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-uds" edition = "2021" rust-version = "1.56.1" description = "Unix domain sockets transport for libp2p" -version = "0.35.0" +version = "0.36.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [target.'cfg(all(unix, not(target_os = "emscripten")))'.dependencies] async-std = { version = "1.6.2", optional = true } -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" tokio = { version = "1.15", default-features = false, features = ["net"], optional = true } diff --git a/transports/wasm-ext/CHANGELOG.md b/transports/wasm-ext/CHANGELOG.md index 0b696f40cce..b778fb9a7ca 100644 --- a/transports/wasm-ext/CHANGELOG.md +++ b/transports/wasm-ext/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.37.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/wasm-ext/Cargo.toml b/transports/wasm-ext/Cargo.toml index c226e0c4208..b4f290e7676 100644 --- a/transports/wasm-ext/Cargo.toml +++ b/transports/wasm-ext/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-wasm-ext" edition = "2021" rust-version = "1.56.1" description = "Allows passing in an external transport in a WASM environment" -version = "0.36.0" +version = "0.37.0" authors = ["Pierre Krieger "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" js-sys = "0.3.50" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } parity-send-wrapper = "0.1.0" wasm-bindgen = "0.2.42" wasm-bindgen-futures = "0.4.4" diff --git a/transports/websocket/CHANGELOG.md b/transports/websocket/CHANGELOG.md index 00ee342d01f..10fcf02e183 100644 --- a/transports/websocket/CHANGELOG.md +++ b/transports/websocket/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.39.0 [unreleased] + +- Update to `libp2p-core` `v0.37.0`. + # 0.38.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index d5dcc663b46..4e44cc46702 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-websocket" edition = "2021" rust-version = "1.56.1" description = "WebSocket transport for libp2p" -version = "0.38.0" +version = "0.39.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] futures-rustls = "0.22" either = "1.5.3" futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core" } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.8" parking_lot = "0.12.0" quicksink = "0.1" From a79d57c5b1ab94040823e06fa7bc4b124e589f74 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 11:59:13 +1000 Subject: [PATCH 05/26] Remove default feature from libp2p-mdns --- Cargo.toml | 2 +- protocols/mdns/CHANGELOG.md | 4 ++++ protocols/mdns/Cargo.toml | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 247b42f9c53..43c084c978e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -110,7 +110,7 @@ smallvec = "1.6.1" [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies] libp2p-deflate = { version = "0.37.0", path = "transports/deflate", optional = true } libp2p-dns = { version = "0.37.0", path = "transports/dns", optional = true, default-features = false } -libp2p-mdns = { version = "0.41.0", path = "protocols/mdns", optional = true, default-features = false } +libp2p-mdns = { version = "0.41.0", path = "protocols/mdns", optional = true } libp2p-tcp = { version = "0.37.0", path = "transports/tcp", default-features = false, optional = true } libp2p-websocket = { version = "0.39.0", path = "transports/websocket", optional = true } diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index 00713cd5114..b810f3e8d35 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -1,7 +1,11 @@ # 0.41.0 [unreleased] +- Remove default features. If you previously depended on `async-io` you need to enable this explicitly now. See [PR XXXX]. + - Update to `libp2p-core` `v0.37.0`. +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX + # 0.40.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 73f0b8c6472..330aca3ba28 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -28,7 +28,6 @@ async-io = { version = "1.3.1", optional = true } tokio = { version = "1.19", default-features = false, features = ["net", "time"], optional = true} [features] -default = ["async-io"] tokio = ["dep:tokio"] async-io = ["dep:async-io"] From 148090fec7e6508525c23451270bac9e449315e4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 12:00:22 +1000 Subject: [PATCH 06/26] Remove default feature from libp2p-dns --- Cargo.toml | 2 +- transports/dns/CHANGELOG.md | 4 ++++ transports/dns/Cargo.toml | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 43c084c978e..3ec1c538c0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,7 +109,7 @@ smallvec = "1.6.1" [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies] libp2p-deflate = { version = "0.37.0", path = "transports/deflate", optional = true } -libp2p-dns = { version = "0.37.0", path = "transports/dns", optional = true, default-features = false } +libp2p-dns = { version = "0.37.0", path = "transports/dns", optional = true } libp2p-mdns = { version = "0.41.0", path = "protocols/mdns", optional = true } libp2p-tcp = { version = "0.37.0", path = "transports/tcp", default-features = false, optional = true } libp2p-websocket = { version = "0.39.0", path = "transports/websocket", optional = true } diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md index 8a8a438df2f..3a22170e5e1 100644 --- a/transports/dns/CHANGELOG.md +++ b/transports/dns/CHANGELOG.md @@ -1,7 +1,11 @@ # 0.37.0 [unreleased] +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. + - Update to `libp2p-core` `v0.37.0`. +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index f2b83d6b1bd..35dce0404b6 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -25,7 +25,6 @@ tokio-crate = { package = "tokio", version = "1.0", default-features = false, fe async-std-crate = { package = "async-std", version = "1.6" } [features] -default = ["async-std"] async-std = ["async-std-resolver"] tokio = ["trust-dns-resolver/tokio-runtime"] # The `tokio-` prefix and feature dependency is just to be explicit, From 8bf0ad768aa38dd17401412da1aefe77780d6e71 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 12:01:34 +1000 Subject: [PATCH 07/26] Remove default feature from libp2p-tcp --- Cargo.toml | 2 +- transports/tcp/CHANGELOG.md | 4 ++++ transports/tcp/Cargo.toml | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3ec1c538c0a..4819a361769 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -111,7 +111,7 @@ smallvec = "1.6.1" libp2p-deflate = { version = "0.37.0", path = "transports/deflate", optional = true } libp2p-dns = { version = "0.37.0", path = "transports/dns", optional = true } libp2p-mdns = { version = "0.41.0", path = "protocols/mdns", optional = true } -libp2p-tcp = { version = "0.37.0", path = "transports/tcp", default-features = false, optional = true } +libp2p-tcp = { version = "0.37.0", path = "transports/tcp", optional = true } libp2p-websocket = { version = "0.39.0", path = "transports/websocket", optional = true } [target.'cfg(not(target_os = "unknown"))'.dependencies] diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md index ad55cab9b55..56cbba97715 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -5,6 +5,10 @@ - Update to `libp2p-core` `v0.37.0`. +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. + +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX + [PR 2813]: https://github.com/libp2p/rust-libp2p/pull/2813 # 0.36.0 diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 765576089d5..06517a84f67 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -22,7 +22,6 @@ socket2 = { version = "0.4.0", features = ["all"] } tokio-crate = { package = "tokio", version = "1.19.0", default-features = false, features = ["net"], optional = true } [features] -default = ["async-io"] tokio = ["tokio-crate"] async-io = ["async-io-crate"] From e6b49a331b9a69619c386711cebbc6f36907c425 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 12:02:23 +1000 Subject: [PATCH 08/26] Remove default feature from libp2p-uds --- transports/uds/CHANGELOG.md | 4 ++++ transports/uds/Cargo.toml | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md index 40503781bd6..dc5c6f4e5de 100644 --- a/transports/uds/CHANGELOG.md +++ b/transports/uds/CHANGELOG.md @@ -1,7 +1,11 @@ # 0.36.0 [unreleased] +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. + - Update to `libp2p-core` `v0.37.0`. +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX + # 0.35.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index 0af45c835b0..e9483f503d1 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -19,6 +19,3 @@ tokio = { version = "1.15", default-features = false, features = ["net"], option [target.'cfg(all(unix, not(target_os = "emscripten")))'.dev-dependencies] tempfile = "3.0" - -[features] -default = ["async-std"] From 0a922682843ec5e84c31d565bb58ec150331c0fa Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 12:03:01 +1000 Subject: [PATCH 09/26] Remove `default-features = false` from libp2p-wasm-ext This crate does not have any default features. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4819a361769..510c09e3630 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -99,7 +99,7 @@ libp2p-request-response = { version = "0.22.0", path = "protocols/request-respon libp2p-swarm = { version = "0.40.0", path = "swarm" } libp2p-swarm-derive = { version = "0.30.1", path = "swarm-derive" } libp2p-uds = { version = "0.36.0", path = "transports/uds", optional = true } -libp2p-wasm-ext = { version = "0.37.0", path = "transports/wasm-ext", default-features = false, optional = true } +libp2p-wasm-ext = { version = "0.37.0", path = "transports/wasm-ext", optional = true } libp2p-yamux = { version = "0.41.0", path = "muxers/yamux", optional = true } multiaddr = { version = "0.14.0" } parking_lot = "0.12.0" From c6f50900083327c0a277edb4be6137476c9677b5 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:07:23 +1000 Subject: [PATCH 10/26] Remove default features from `libp2p` crate Adds a CI check that ensures we specify the correct features for each example. --- .github/workflows/ci.yml | 27 ++++++++++++++ CHANGELOG.md | 2 ++ Cargo.toml | 52 +++++++++++---------------- core/Cargo.toml | 2 +- misc/metrics/Cargo.toml | 2 +- misc/multistream-select/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/mdns/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- swarm-derive/Cargo.toml | 2 +- swarm/Cargo.toml | 2 +- transports/deflate/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- 22 files changed, 69 insertions(+), 50 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1509406f8a..b9ca8c2c86f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,3 +187,30 @@ jobs: - name: Check formatting run: cargo fmt -- --check + + examples: + runs-on: ubuntu-latest + steps: + + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + with: + profile: minimal + toolchain: stable + override: true + + - name: Ensure all examples compile with the specified feature set + run: | + cargo metadata --format-version=1 --no-deps | \ + jq -r \ + '.packages[] | select(.name == "libp2p") | # select the root crate + .targets[] | select(.kind == ["example"]) | # find all examples + ."required-features" as $features | .name as $name | # extract interesting fields as variables + "cargo check --example " + $name + " --features \"" + ( $features | join(" ")) + "\"" # build `cargo check` command + ' | xargs -0 -I '{}' sh -c '{}' # run each command diff --git a/CHANGELOG.md b/CHANGELOG.md index 70cb012e874..304598912f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,8 @@ # 0.49.0 - [unreleased] +- Remove default features. You need to enable all features explicitly now. See [PR XXXX]. + - Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). - Update to [`libp2p-swarm-derive` `v0.30.1`](swarm-derive/CHANGELOG.md#0301). diff --git a/Cargo.toml b/Cargo.toml index 510c09e3630..e7450f02848 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,32 +11,6 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [features] -default = [ - "autonat", - "deflate", - "dns-async-std", - "floodsub", - "identify", - "kad", - "gossipsub", - "mdns-async-io", - "mplex", - "noise", - "ping", - "plaintext", - "pnet", - "relay", - "request-response", - "rendezvous", - "rsa", - "secp256k1", - "tcp-async-io", - "uds", - "wasm-ext", - "websocket", - "yamux", -] - autonat = ["dep:libp2p-autonat"] dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"] deflate = ["dep:libp2p-deflate"] @@ -160,20 +134,36 @@ members = [ [[example]] name = "chat" -required-features = ["floodsub"] +required-features = ["floodsub", "mdns-async-io", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] [[example]] name = "chat-tokio" -required-features = ["tcp-tokio", "mdns-tokio"] +required-features = ["tcp-tokio", "mdns-tokio", "floodsub", "mplex", "noise"] [[example]] name = "file-sharing" -required-features = ["request-response"] +required-features = ["request-response", "kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] [[example]] name = "gossipsub-chat" -required-features = ["gossipsub"] +required-features = ["gossipsub", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] [[example]] name = "ipfs-private" -required-features = ["gossipsub", "pnet", "yamux", "ping", "noise", "tcp-async-io", "identify"] +required-features = ["gossipsub", "tcp-async-io", "identify", "noise", "ping", "pnet", "yamux"] + +[[example]] +name = "ipfs-kad" +required-features = ["kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] + +[[example]] +name = "ping" +required-features = ["ping", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] + +[[example]] +name = "mdns-passive-discovery" +required-features = ["mdns-async-io", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] + +[[example]] +name = "distributed-key-value-store" +required-features = ["mdns-async-io", "kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] diff --git a/core/Cargo.toml b/core/Cargo.toml index ee174e959b8..c6628d0a0e1 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -46,7 +46,7 @@ ring = { version = "0.16.9", features = ["alloc", "std"], default-features = fal async-std = { version = "1.6.2", features = ["attributes"] } base64 = "0.13.0" criterion = "0.4" -libp2p = { path = "../", default-features = false, features = ["mplex", "noise"] } +libp2p = { path = "../", features = ["mplex", "noise"] } multihash = { version = "0.16", default-features = false, features = ["arb"] } quickcheck = "0.9.0" rand07 = { package = "rand", version = "0.7" } diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 3779c187648..d3fe25267ea 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -35,6 +35,6 @@ libp2p-gossipsub = { version = "0.42.0", path = "../../protocols/gossipsub", op log = "0.4.0" env_logger = "0.9.0" futures = "0.3.1" -libp2p = { path = "../../", default-features = false, features = ["metrics", "ping", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux"] } +libp2p = { path = "../../", features = ["metrics", "ping", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux"] } hyper = { version="0.14", features = ["server", "tcp", "http1"] } tokio = { version = "1", features = ["rt-multi-thread"] } diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index 401902d12f2..01a49e33034 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -21,7 +21,7 @@ unsigned-varint = "0.7" [dev-dependencies] async-std = "1.6.2" env_logger = "0.9" -libp2p = { path = "../../", default-features = false, features = ["mplex", "plaintext"] } +libp2p = { path = "../../", features = ["mplex", "plaintext"] } quickcheck = "0.9.0" rand = "0.7.2" rw-stream-sink = { version = "0.3.0", path = "../../misc/rw-stream-sink" } diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index d887bc94508..649f2d1f7b7 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -27,7 +27,7 @@ async-std = "1.7.0" criterion = "0.4" env_logger = "0.9" futures = "0.3" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "plaintext", "mplex"] } +libp2p = { path = "../../", features = ["tcp-async-io", "plaintext", "mplex"] } quickcheck = "0.9" rand = "0.7" diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index c3c5cf2347f..cbb666f45c3 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -29,4 +29,4 @@ prost = "0.11" async-std = { version = "1.10", features = ["attributes"] } env_logger = "0.9" clap = {version = "3.1.6", features = ["derive"]} -libp2p = { path = "../../", default-features = false, features = ["autonat", "dns-async-std", "identify", "mplex", "noise", "tcp-async-io", "websocket", "yamux"] } +libp2p = { path = "../../", features = ["autonat", "dns-async-std", "identify", "mplex", "noise", "tcp-async-io", "websocket", "yamux"] } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 1878cff1638..f33398883c9 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -30,6 +30,6 @@ prost-build = "0.11" [dev-dependencies] env_logger = "0.9.0" -libp2p = { path = "../..", default-features = false, features = ["dcutr", "relay", "plaintext", "identify", "tcp-async-io", "ping", "noise", "dns-async-std", "yamux"] } +libp2p = { path = "../..", features = ["dcutr", "relay", "plaintext", "identify", "tcp-async-io", "ping", "noise", "dns-async-std", "yamux"] } rand = "0.7" clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index bb5cb74cbb5..4130422b850 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -36,7 +36,7 @@ prometheus-client = "0.18.0" [dev-dependencies] async-std = "1.6.3" env_logger = "0.9.0" -libp2p = { path = "../../", default-features = false, features = ["plaintext", "yamux", "noise", "mplex", "gossipsub"] } +libp2p = { path = "../../", features = ["plaintext", "yamux", "noise", "mplex", "gossipsub"] } quickcheck = "0.9.2" hex = "0.4.2" derive_builder = "0.11.1" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index ebfe82e02a9..7f92a354f47 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -27,7 +27,7 @@ void = "1.0" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../..", default-features = false, features = [ +libp2p = { path = "../..", features = [ "dns-async-std", "mplex", "noise", diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index ea54dce5ec7..89c39f553b2 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -35,7 +35,7 @@ thiserror = "1" [dev-dependencies] env_logger = "0.9.0" futures-timer = "3.0" -libp2p = { path = "../../", default-features = false, features = ["noise", "yamux"] } +libp2p = { path = "../../", features = ["noise", "yamux"] } quickcheck = "0.9.0" [build-dependencies] diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 330aca3ba28..046a438e4d0 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -34,7 +34,7 @@ async-io = ["dep:async-io"] [dev-dependencies] async-std = { version = "1.9.0", features = ["attributes"] } env_logger = "0.9.0" -libp2p = { path = "../..", default-features = false, features = ["mdns-async-io", "tcp-async-io", "dns-async-std", "tcp-tokio", "dns-tokio", "websocket", "noise", "mplex", "yamux"] } +libp2p = { path = "../..", features = ["mdns-async-io", "tcp-async-io", "dns-async-std", "tcp-tokio", "dns-tokio", "websocket", "noise", "mplex", "yamux"] } tokio = { version = "1.19", default-features = false, features = ["macros", "rt", "rt-multi-thread", "time"] } diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 315273a53e5..0376b86b702 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -22,5 +22,5 @@ void = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "noise", "mplex", "yamux", "ping"] } +libp2p = { path = "../../", features = ["tcp-async-io", "noise", "mplex", "yamux", "ping"] } quickcheck = "0.9.0" diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 60ff89375b7..876c477d3c6 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -34,6 +34,6 @@ prost-build = "0.11" [dev-dependencies] env_logger = "0.9.0" -libp2p = { path = "../..", default-features = false, features = ["identify", "kad", "ping", "plaintext", "tcp-async-io", "relay", "noise", "yamux"] } +libp2p = { path = "../..", features = ["identify", "kad", "ping", "plaintext", "tcp-async-io", "relay", "noise", "yamux"] } quickcheck = "1" clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 170673f6575..2fe39179ab7 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -29,7 +29,7 @@ instant = "0.1.11" [dev-dependencies] async-trait = "0.1" env_logger = "0.9.0" -libp2p = { path = "../..", default-features = false, features = ["ping", "identify", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux", "rendezvous"] } +libp2p = { path = "../..", features = ["ping", "identify", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux", "rendezvous"] } rand = "0.8" tokio = { version = "1.15", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] } diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 065c620115e..1804b47ae19 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -25,5 +25,5 @@ unsigned-varint = { version = "0.7", features = ["std", "futures"] } [dev-dependencies] async-std = "1.6.2" env_logger = "0.9.0" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "noise", "yamux", "request-response"] } +libp2p = { path = "../../", features = ["tcp-async-io", "noise", "yamux", "request-response"] } rand = "0.7" diff --git a/swarm-derive/Cargo.toml b/swarm-derive/Cargo.toml index 1d2c54a9da1..5e573eaa010 100644 --- a/swarm-derive/Cargo.toml +++ b/swarm-derive/Cargo.toml @@ -19,7 +19,7 @@ quote = "1.0" syn = { version = "1.0.8", default-features = false, features = ["clone-impls", "derive", "parsing", "printing", "proc-macro"] } [dev-dependencies] -libp2p = { path = "../", default-features = false, features = ["ping", "identify", "kad"] } +libp2p = { path = "../", features = ["ping", "identify", "kad"] } either = "1.6.0" futures = "0.3.1" void = "1" diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index 250bdb11ad6..b67e8062c6b 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -27,6 +27,6 @@ void = "1" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../", default-features = false, features = ["plaintext", "identify", "ping", "noise", "yamux", "mplex", "tcp-async-io"] } +libp2p = { path = "../", features = ["plaintext", "identify", "ping", "noise", "yamux", "mplex", "tcp-async-io"] } quickcheck = "0.9.0" rand = "0.7.2" diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index 45e120557d7..b31a25158f5 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -17,6 +17,6 @@ flate2 = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "deflate"] } +libp2p = { path = "../../", features = ["tcp-async-io", "deflate"] } quickcheck = "0.9" rand = "0.7" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index ff9388dd5ce..153e626b6b2 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -31,7 +31,7 @@ snow = { version = "0.9.0", features = ["default-resolver"], default-features = [dev-dependencies] async-io = "1.2.0" env_logger = "0.9.0" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "noise"] } +libp2p = { path = "../../", features = ["tcp-async-io", "noise"] } quickcheck = "0.9.0" libsodium-sys-stable = { version = "1.19.22", features = ["fetch-latest"] } ed25519-compact = "1.0.11" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 4e44cc46702..c553038b846 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -24,4 +24,4 @@ url = "2.1" webpki-roots = "0.22" [dev-dependencies] -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io"] } +libp2p = { path = "../../", features = ["tcp-async-io"] } From a31f59533e2cefe03ffa07d34fb5fdde7bd8c280 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:28:06 +1000 Subject: [PATCH 11/26] Put features onto one line --- protocols/identify/Cargo.toml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 7f92a354f47..1311338a826 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -27,14 +27,7 @@ void = "1.0" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../..", features = [ - "dns-async-std", - "mplex", - "noise", - "tcp-async-io", - "websocket", - "yamux", -]} +libp2p = { path = "../..", features = ["dns-async-std", "mplex", "noise", "tcp-async-io", "websocket", "yamux"] } [build-dependencies] prost-build = "0.11" From 37c7c79368207c8669ec16ac12e6142266dfa64d Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:33:06 +1000 Subject: [PATCH 12/26] Introduce `full` feature --- CHANGELOG.md | 3 ++- Cargo.toml | 34 +++++++++++++++++++++++++++ core/Cargo.toml | 2 +- misc/metrics/Cargo.toml | 2 +- misc/multistream-select/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/mdns/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- swarm-derive/Cargo.toml | 2 +- swarm/Cargo.toml | 2 +- transports/deflate/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- 21 files changed, 55 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 304598912f9..c082e280f08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,7 +45,8 @@ # 0.49.0 - [unreleased] -- Remove default features. You need to enable all features explicitly now. See [PR XXXX]. +- Remove default features. You need to enable all features explicitly now. As a quick workaround, you may want to use the + new `full` feature which activates all features. See [PR XXXX]. - Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). diff --git a/Cargo.toml b/Cargo.toml index e7450f02848..10fab6bb515 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,40 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [features] +full = [ + "autonat", + "dcutr", + "deflate", + "dns-async-std", + "dns-tokio", + "ecdsa", + "floodsub", + "gossipsub", + "identify", + "kad", + "mdns-async-io", + "mdns-tokio", + "metrics", + "mplex", + "noise", + "ping", + "plaintext", + "pnet", + "relay", + "rendezvous", + "request-response", + "rsa", + "secp256k1", + "serde", + "tcp-async-io", + "tcp-tokio", + "uds", + "wasm-bindgen", + "wasm-ext", + "wasm-ext-websocket", + "websocket", + "yamux", +] autonat = ["dep:libp2p-autonat"] dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"] deflate = ["dep:libp2p-deflate"] diff --git a/core/Cargo.toml b/core/Cargo.toml index c6628d0a0e1..fd10cc167f9 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -46,7 +46,7 @@ ring = { version = "0.16.9", features = ["alloc", "std"], default-features = fal async-std = { version = "1.6.2", features = ["attributes"] } base64 = "0.13.0" criterion = "0.4" -libp2p = { path = "../", features = ["mplex", "noise"] } +libp2p = { path = "../", features = ["full"] } multihash = { version = "0.16", default-features = false, features = ["arb"] } quickcheck = "0.9.0" rand07 = { package = "rand", version = "0.7" } diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index d3fe25267ea..a1e739b2844 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -35,6 +35,6 @@ libp2p-gossipsub = { version = "0.42.0", path = "../../protocols/gossipsub", op log = "0.4.0" env_logger = "0.9.0" futures = "0.3.1" -libp2p = { path = "../../", features = ["metrics", "ping", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux"] } +libp2p = { path = "../../", features = ["full"] } hyper = { version="0.14", features = ["server", "tcp", "http1"] } tokio = { version = "1", features = ["rt-multi-thread"] } diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index 01a49e33034..b83d99540ec 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -21,7 +21,7 @@ unsigned-varint = "0.7" [dev-dependencies] async-std = "1.6.2" env_logger = "0.9" -libp2p = { path = "../../", features = ["mplex", "plaintext"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9.0" rand = "0.7.2" rw-stream-sink = { version = "0.3.0", path = "../../misc/rw-stream-sink" } diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 649f2d1f7b7..3bbfa04eed0 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -27,7 +27,7 @@ async-std = "1.7.0" criterion = "0.4" env_logger = "0.9" futures = "0.3" -libp2p = { path = "../../", features = ["tcp-async-io", "plaintext", "mplex"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9" rand = "0.7" diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index cbb666f45c3..1ab8a656479 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -29,4 +29,4 @@ prost = "0.11" async-std = { version = "1.10", features = ["attributes"] } env_logger = "0.9" clap = {version = "3.1.6", features = ["derive"]} -libp2p = { path = "../../", features = ["autonat", "dns-async-std", "identify", "mplex", "noise", "tcp-async-io", "websocket", "yamux"] } +libp2p = { path = "../../", features = ["full"] } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index f33398883c9..ae49a98eda9 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -30,6 +30,6 @@ prost-build = "0.11" [dev-dependencies] env_logger = "0.9.0" -libp2p = { path = "../..", features = ["dcutr", "relay", "plaintext", "identify", "tcp-async-io", "ping", "noise", "dns-async-std", "yamux"] } +libp2p = { path = "../..", features = ["full"] } rand = "0.7" clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 4130422b850..e210ee4bf76 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -36,7 +36,7 @@ prometheus-client = "0.18.0" [dev-dependencies] async-std = "1.6.3" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["plaintext", "yamux", "noise", "mplex", "gossipsub"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9.2" hex = "0.4.2" derive_builder = "0.11.1" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 1311338a826..75705e06605 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -27,7 +27,7 @@ void = "1.0" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../..", features = ["dns-async-std", "mplex", "noise", "tcp-async-io", "websocket", "yamux"] } +libp2p = { path = "../..", features = ["full"] } [build-dependencies] prost-build = "0.11" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index 89c39f553b2..7fbcc1a0614 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -35,7 +35,7 @@ thiserror = "1" [dev-dependencies] env_logger = "0.9.0" futures-timer = "3.0" -libp2p = { path = "../../", features = ["noise", "yamux"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9.0" [build-dependencies] diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 046a438e4d0..466c9eb9e25 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -34,7 +34,7 @@ async-io = ["dep:async-io"] [dev-dependencies] async-std = { version = "1.9.0", features = ["attributes"] } env_logger = "0.9.0" -libp2p = { path = "../..", features = ["mdns-async-io", "tcp-async-io", "dns-async-std", "tcp-tokio", "dns-tokio", "websocket", "noise", "mplex", "yamux"] } +libp2p = { path = "../..", features = ["full"] } tokio = { version = "1.19", default-features = false, features = ["macros", "rt", "rt-multi-thread", "time"] } diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 0376b86b702..0750b97668f 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -22,5 +22,5 @@ void = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", features = ["tcp-async-io", "noise", "mplex", "yamux", "ping"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9.0" diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 876c477d3c6..5d68c48a323 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -34,6 +34,6 @@ prost-build = "0.11" [dev-dependencies] env_logger = "0.9.0" -libp2p = { path = "../..", features = ["identify", "kad", "ping", "plaintext", "tcp-async-io", "relay", "noise", "yamux"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "1" clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 2fe39179ab7..fc25965bccd 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -29,7 +29,7 @@ instant = "0.1.11" [dev-dependencies] async-trait = "0.1" env_logger = "0.9.0" -libp2p = { path = "../..", features = ["ping", "identify", "tcp-async-io", "dns-async-std", "websocket", "noise", "mplex", "yamux", "rendezvous"] } +libp2p = { path = "../..", features = ["full"] } rand = "0.8" tokio = { version = "1.15", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] } diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 1804b47ae19..115e89fdd56 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -25,5 +25,5 @@ unsigned-varint = { version = "0.7", features = ["std", "futures"] } [dev-dependencies] async-std = "1.6.2" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["tcp-async-io", "noise", "yamux", "request-response"] } +libp2p = { path = "../../", features = ["full"] } rand = "0.7" diff --git a/swarm-derive/Cargo.toml b/swarm-derive/Cargo.toml index 5e573eaa010..c39c538408b 100644 --- a/swarm-derive/Cargo.toml +++ b/swarm-derive/Cargo.toml @@ -19,7 +19,7 @@ quote = "1.0" syn = { version = "1.0.8", default-features = false, features = ["clone-impls", "derive", "parsing", "printing", "proc-macro"] } [dev-dependencies] -libp2p = { path = "../", features = ["ping", "identify", "kad"] } +libp2p = { path = "../", features = ["full"] } either = "1.6.0" futures = "0.3.1" void = "1" diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index b67e8062c6b..b4b2bd63365 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -27,6 +27,6 @@ void = "1" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../", features = ["plaintext", "identify", "ping", "noise", "yamux", "mplex", "tcp-async-io"] } +libp2p = { path = "../", features = ["full"] } quickcheck = "0.9.0" rand = "0.7.2" diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index b31a25158f5..1dfb308db8e 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -17,6 +17,6 @@ flate2 = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", features = ["tcp-async-io", "deflate"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9" rand = "0.7" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 153e626b6b2..f58042cc469 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -31,7 +31,7 @@ snow = { version = "0.9.0", features = ["default-resolver"], default-features = [dev-dependencies] async-io = "1.2.0" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["tcp-async-io", "noise"] } +libp2p = { path = "../../", features = ["full"] } quickcheck = "0.9.0" libsodium-sys-stable = { version = "1.19.22", features = ["fetch-latest"] } ed25519-compact = "1.0.11" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index c553038b846..e331be9a069 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -24,4 +24,4 @@ url = "2.1" webpki-roots = "0.22" [dev-dependencies] -libp2p = { path = "../../", features = ["tcp-async-io"] } +libp2p = { path = "../../", features = ["full"] } From c5968d6c77c700c7f2394548c14a0c212830c251 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:35:15 +1000 Subject: [PATCH 13/26] Align how we specify the path to `libp2p` across workspace --- core/Cargo.toml | 2 +- misc/metrics/Cargo.toml | 2 +- misc/multistream-select/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- swarm-derive/Cargo.toml | 2 +- swarm/Cargo.toml | 2 +- transports/deflate/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index fd10cc167f9..9d6169b0c47 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -46,7 +46,7 @@ ring = { version = "0.16.9", features = ["alloc", "std"], default-features = fal async-std = { version = "1.6.2", features = ["attributes"] } base64 = "0.13.0" criterion = "0.4" -libp2p = { path = "../", features = ["full"] } +libp2p = { path = "..", features = ["full"] } multihash = { version = "0.16", default-features = false, features = ["arb"] } quickcheck = "0.9.0" rand07 = { package = "rand", version = "0.7" } diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index a1e739b2844..1e96355606a 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -35,6 +35,6 @@ libp2p-gossipsub = { version = "0.42.0", path = "../../protocols/gossipsub", op log = "0.4.0" env_logger = "0.9.0" futures = "0.3.1" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } hyper = { version="0.14", features = ["server", "tcp", "http1"] } tokio = { version = "1", features = ["rt-multi-thread"] } diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index b83d99540ec..12dfd832c60 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -21,7 +21,7 @@ unsigned-varint = "0.7" [dev-dependencies] async-std = "1.6.2" env_logger = "0.9" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9.0" rand = "0.7.2" rw-stream-sink = { version = "0.3.0", path = "../../misc/rw-stream-sink" } diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 3bbfa04eed0..b8faa6f966c 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -27,7 +27,7 @@ async-std = "1.7.0" criterion = "0.4" env_logger = "0.9" futures = "0.3" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9" rand = "0.7" diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index 1ab8a656479..ed117c9edf4 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -29,4 +29,4 @@ prost = "0.11" async-std = { version = "1.10", features = ["attributes"] } env_logger = "0.9" clap = {version = "3.1.6", features = ["derive"]} -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index e210ee4bf76..7de972806ab 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -36,7 +36,7 @@ prometheus-client = "0.18.0" [dev-dependencies] async-std = "1.6.3" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9.2" hex = "0.4.2" derive_builder = "0.11.1" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index 7fbcc1a0614..12cdefa58d2 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -35,7 +35,7 @@ thiserror = "1" [dev-dependencies] env_logger = "0.9.0" futures-timer = "3.0" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9.0" [build-dependencies] diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 0750b97668f..f626c2d989e 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -22,5 +22,5 @@ void = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9.0" diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 115e89fdd56..8da410c2465 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -25,5 +25,5 @@ unsigned-varint = { version = "0.7", features = ["std", "futures"] } [dev-dependencies] async-std = "1.6.2" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } rand = "0.7" diff --git a/swarm-derive/Cargo.toml b/swarm-derive/Cargo.toml index c39c538408b..baab666b0eb 100644 --- a/swarm-derive/Cargo.toml +++ b/swarm-derive/Cargo.toml @@ -19,7 +19,7 @@ quote = "1.0" syn = { version = "1.0.8", default-features = false, features = ["clone-impls", "derive", "parsing", "printing", "proc-macro"] } [dev-dependencies] -libp2p = { path = "../", features = ["full"] } +libp2p = { path = "..", features = ["full"] } either = "1.6.0" futures = "0.3.1" void = "1" diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index b4b2bd63365..e096de018d4 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -27,6 +27,6 @@ void = "1" [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } env_logger = "0.9" -libp2p = { path = "../", features = ["full"] } +libp2p = { path = "..", features = ["full"] } quickcheck = "0.9.0" rand = "0.7.2" diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index 1dfb308db8e..c71cc1d0db7 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -17,6 +17,6 @@ flate2 = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9" rand = "0.7" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index f58042cc469..beeb458eeda 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -31,7 +31,7 @@ snow = { version = "0.9.0", features = ["default-resolver"], default-features = [dev-dependencies] async-io = "1.2.0" env_logger = "0.9.0" -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = "0.9.0" libsodium-sys-stable = { version = "1.19.22", features = ["fetch-latest"] } ed25519-compact = "1.0.11" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index e331be9a069..5402af48c6f 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -24,4 +24,4 @@ url = "2.1" webpki-roots = "0.22" [dev-dependencies] -libp2p = { path = "../../", features = ["full"] } +libp2p = { path = "../..", features = ["full"] } From cbb66a5b4fd2556c10f5d4908ab7cd0a032002f9 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:47:10 +1000 Subject: [PATCH 14/26] Add CI check to enforce that `full` feature contains all features --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9ca8c2c86f..ff73716aba0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,3 +214,27 @@ jobs: ."required-features" as $features | .name as $name | # extract interesting fields as variables "cargo check --example " + $name + " --features \"" + ( $features | join(" ")) + "\"" # build `cargo check` command ' | xargs -0 -I '{}' sh -c '{}' # run each command + + manifest_lint: + runs-on: ubuntu-latest + steps: + + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + with: + profile: minimal + toolchain: stable + override: true + + - name: Ensure `full` feature contains all features + run: | + ALL_FEATURES=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "libp2p") | .features | keys | map(select(. != "full")) | sort | join(" ")') + FULL_FEATURE=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "libp2p") | .features["full"] | sort | join(" ")') + + test $ALL_FEATURES = $FULL_FEATURE From 9add85b9b64949fa8c5eef356336ac8e2607f306 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:51:29 +1000 Subject: [PATCH 15/26] Use `full` feature for all examples This gets rid of the cool but complicated CI check. --- .github/workflows/ci.yml | 27 --------------------------- Cargo.toml | 18 +++++++++--------- 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff73716aba0..ab0b9a8671a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,33 +188,6 @@ jobs: - name: Check formatting run: cargo fmt -- --check - examples: - runs-on: ubuntu-latest - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - profile: minimal - toolchain: stable - override: true - - - name: Ensure all examples compile with the specified feature set - run: | - cargo metadata --format-version=1 --no-deps | \ - jq -r \ - '.packages[] | select(.name == "libp2p") | # select the root crate - .targets[] | select(.kind == ["example"]) | # find all examples - ."required-features" as $features | .name as $name | # extract interesting fields as variables - "cargo check --example " + $name + " --features \"" + ( $features | join(" ")) + "\"" # build `cargo check` command - ' | xargs -0 -I '{}' sh -c '{}' # run each command - manifest_lint: runs-on: ubuntu-latest steps: diff --git a/Cargo.toml b/Cargo.toml index 10fab6bb515..bb4ea87f03b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -168,36 +168,36 @@ members = [ [[example]] name = "chat" -required-features = ["floodsub", "mdns-async-io", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "chat-tokio" -required-features = ["tcp-tokio", "mdns-tokio", "floodsub", "mplex", "noise"] +required-features = ["full"] [[example]] name = "file-sharing" -required-features = ["request-response", "kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "gossipsub-chat" -required-features = ["gossipsub", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "ipfs-private" -required-features = ["gossipsub", "tcp-async-io", "identify", "noise", "ping", "pnet", "yamux"] +required-features = ["full"] [[example]] name = "ipfs-kad" -required-features = ["kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "ping" -required-features = ["ping", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "mdns-passive-discovery" -required-features = ["mdns-async-io", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] [[example]] name = "distributed-key-value-store" -required-features = ["mdns-async-io", "kad", "tcp-async-io", "websocket", "mplex", "yamux", "noise", "dns-async-std"] +required-features = ["full"] From 844adb57f4b91426b36212f5c9dae0fa116e50d7 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:54:49 +1000 Subject: [PATCH 16/26] Fill in PR number --- CHANGELOG.md | 2 +- core/CHANGELOG.md | 4 ++-- protocols/mdns/CHANGELOG.md | 4 ++-- transports/dns/CHANGELOG.md | 4 ++-- transports/tcp/CHANGELOG.md | 4 ++-- transports/uds/CHANGELOG.md | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c082e280f08..9ed190009ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,7 @@ # 0.49.0 - [unreleased] - Remove default features. You need to enable all features explicitly now. As a quick workaround, you may want to use the - new `full` feature which activates all features. See [PR XXXX]. + new `full` feature which activates all features. See [PR 2918]. - Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 38cee621db3..626aacfb1a9 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,9 +1,9 @@ # 0.37.0 [unreleased] - Remove default features. If you previously depended on `secp256k1` or `ecdsa` you need to enable these explicitly - now. See [PR XXXX]. + now. See [PR 2918]. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.36.0 diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index b810f3e8d35..e9488c41a1b 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -1,10 +1,10 @@ # 0.41.0 [unreleased] -- Remove default features. If you previously depended on `async-io` you need to enable this explicitly now. See [PR XXXX]. +- Remove default features. If you previously depended on `async-io` you need to enable this explicitly now. See [PR 2918]. - Update to `libp2p-core` `v0.37.0`. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.40.0 diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md index 3a22170e5e1..e20c92f66e0 100644 --- a/transports/dns/CHANGELOG.md +++ b/transports/dns/CHANGELOG.md @@ -1,10 +1,10 @@ # 0.37.0 [unreleased] -- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR 2918]. - Update to `libp2p-core` `v0.37.0`. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.36.0 diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md index 56cbba97715..5659aff395e 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -5,9 +5,9 @@ - Update to `libp2p-core` `v0.37.0`. -- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR 2918]. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 [PR 2813]: https://github.com/libp2p/rust-libp2p/pull/2813 diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md index dc5c6f4e5de..6d7581890c9 100644 --- a/transports/uds/CHANGELOG.md +++ b/transports/uds/CHANGELOG.md @@ -1,10 +1,10 @@ # 0.36.0 [unreleased] -- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR XXXX]. +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR 2918]. - Update to `libp2p-core` `v0.37.0`. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.35.0 From 4b8091d9b8f883b054e486ff0a705322f9ea5544 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:57:24 +1000 Subject: [PATCH 17/26] `test` on bash needs quotes --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab0b9a8671a..66bebfdca13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -210,4 +210,4 @@ jobs: ALL_FEATURES=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "libp2p") | .features | keys | map(select(. != "full")) | sort | join(" ")') FULL_FEATURE=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "libp2p") | .features["full"] | sort | join(" ")') - test $ALL_FEATURES = $FULL_FEATURE + test "$ALL_FEATURES = $FULL_FEATURE" From 26bf2b86e452fb8f2982a2d67b02f03a8846a08a Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 13:59:53 +1000 Subject: [PATCH 18/26] Full in missing changelog entries for libp2p-metrics --- misc/metrics/CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index f544659db61..c627d8ac968 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -2,7 +2,17 @@ - Update to `libp2p-kad` `v0.41.0`. -- TODO: More entries +- Update to `libp2p-swarm` `v0.40.0`. + +- Update to `libp2p-dcutr` `v0.7.0`. + +- Update to `libp2p-ping` `v0.40.0`. + +- Update to `libp2p-identify` `v0.40.0`. + +- Update to `libp2p-relay` `v0.13.0`. + +- Update to `libp2p-core` `v0.37.0`. # 0.9.0 From 7f0a54ca19ab3a04fffaebb07d53fc7fc80ad058 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 14:01:56 +1000 Subject: [PATCH 19/26] Enable `full` feature for integration tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66bebfdca13..819db071c45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,7 +165,7 @@ jobs: - uses: Swatinem/rust-cache@6720f05bc48b77f96918929a9019fb2203ff71f8 # v2.0.0 - name: Run ipfs-kad example - run: RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad + run: RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad --features full rustfmt: runs-on: ubuntu-latest From 0bf360b087d8b504d857f7787a0be9d9cde81cdc Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 14:03:23 +1000 Subject: [PATCH 20/26] Add missing link to PR --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ed190009ca..b3a559f12f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,8 @@ - Update to [`libp2p-gossipsub` `v0.42.0`](protocols/gossipsub/CHANGELOG.md#0420). +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 + # 0.48.0 - Update to [`libp2p-core` `v0.36.0`](core/CHANGELOG.md#0360). From fbee01e8f6844117abdf1d717c151a9172813849 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 14:06:52 +1000 Subject: [PATCH 21/26] Add missing entries for autonat --- misc/metrics/CHANGELOG.md | 2 ++ protocols/autonat/CHANGELOG.md | 4 ++++ protocols/dcutr/CHANGELOG.md | 2 ++ protocols/floodsub/CHANGELOG.md | 2 ++ protocols/gossipsub/CHANGELOG.md | 2 ++ protocols/identify/CHANGELOG.md | 2 ++ protocols/kad/CHANGELOG.md | 2 ++ protocols/mdns/CHANGELOG.md | 2 ++ protocols/ping/CHANGELOG.md | 2 ++ protocols/relay/CHANGELOG.md | 2 ++ protocols/rendezvous/CHANGELOG.md | 2 ++ protocols/request-response/CHANGELOG.md | 2 ++ 12 files changed, 26 insertions(+) diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index c627d8ac968..fdf6806f0b1 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -14,6 +14,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-gossipsub` `v0.42.0`. + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/autonat/CHANGELOG.md b/protocols/autonat/CHANGELOG.md index 6616bfb3a58..06809d78c29 100644 --- a/protocols/autonat/CHANGELOG.md +++ b/protocols/autonat/CHANGELOG.md @@ -2,6 +2,10 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + +- Update to `libp2p-request-response` `v0.22.0`. + # 0.7.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/dcutr/CHANGELOG.md b/protocols/dcutr/CHANGELOG.md index 16c21723dca..8f98e3257d6 100644 --- a/protocols/dcutr/CHANGELOG.md +++ b/protocols/dcutr/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.6.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/floodsub/CHANGELOG.md b/protocols/floodsub/CHANGELOG.md index bbc7ef51bf2..7f3bf724c5a 100644 --- a/protocols/floodsub/CHANGELOG.md +++ b/protocols/floodsub/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index ed2a063f70b..2ffe5f2c9fa 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.41.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/identify/CHANGELOG.md b/protocols/identify/CHANGELOG.md index 58ae66d1d7e..009cee0458a 100644 --- a/protocols/identify/CHANGELOG.md +++ b/protocols/identify/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/kad/CHANGELOG.md b/protocols/kad/CHANGELOG.md index f826151734f..82a1a0e8965 100644 --- a/protocols/kad/CHANGELOG.md +++ b/protocols/kad/CHANGELOG.md @@ -5,6 +5,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2866]: https://github.com/libp2p/rust-libp2p/pull/2866 # 0.40.0 diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index e9488c41a1b..d6f7a89f7b0 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -4,6 +4,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.40.0 diff --git a/protocols/ping/CHANGELOG.md b/protocols/ping/CHANGELOG.md index ad6696738a6..b8f73e94307 100644 --- a/protocols/ping/CHANGELOG.md +++ b/protocols/ping/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.39.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index 95a48b13d56..9937fffec0e 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.12.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/rendezvous/CHANGELOG.md b/protocols/rendezvous/CHANGELOG.md index e709564994c..3e04334ad50 100644 --- a/protocols/rendezvous/CHANGELOG.md +++ b/protocols/rendezvous/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md index f537971cbc2..255e76ebf3e 100644 --- a/protocols/request-response/CHANGELOG.md +++ b/protocols/request-response/CHANGELOG.md @@ -2,6 +2,8 @@ - Update to `libp2p-core` `v0.37.0`. +- Update to `libp2p-swarm` `v0.40.0`. + # 0.21.0 - Update to `libp2p-swarm` `v0.39.0`. From 32978fd581d450e77b663a71d4b9c6adc5b64812 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Sep 2022 14:14:46 +1000 Subject: [PATCH 22/26] Put links in correct order --- transports/tcp/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md index 5659aff395e..d5582f43ebb 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -7,9 +7,8 @@ - Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR 2918]. -[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 - [PR 2813]: https://github.com/libp2p/rust-libp2p/pull/2813 +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.36.0 From eaea0566e862d81324e83c1bfdcaa3d976ade3b1 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 22 Sep 2022 19:04:35 +1000 Subject: [PATCH 23/26] Update CHANGELOG.md Co-authored-by: Max Inden --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3a559f12f2..11a7356645a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,7 +45,7 @@ # 0.49.0 - [unreleased] -- Remove default features. You need to enable all features explicitly now. As a quick workaround, you may want to use the +- Remove default features. You need to enable required features explicitly now. As a quick workaround, you may want to use the new `full` feature which activates all features. See [PR 2918]. - Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). From fc94c0669807710827f6d7a5e036ee56f00bb87c Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 28 Sep 2022 10:28:58 +1000 Subject: [PATCH 24/26] Fix bad merge --- swarm/src/connection/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/src/connection/pool.rs b/swarm/src/connection/pool.rs index 7191d88eadf..c43d5efb61e 100644 --- a/swarm/src/connection/pool.rs +++ b/swarm/src/connection/pool.rs @@ -1223,7 +1223,7 @@ impl PoolConfig { } /// Number of addresses concurrently dialed for a single outbound connection attempt. - pub fn with_dial_concurrenrescy_factor(mut self, factor: NonZeroU8) -> Self { + pub fn with_dial_concurrency_factor(mut self, factor: NonZeroU8) -> Self { self.dial_concurrency_factor = factor; self } From 24508314b378cd5d3692ac028fe66576546dfbbb Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 28 Sep 2022 10:31:29 +1000 Subject: [PATCH 25/26] Re-format changelog and remove duplicates --- CHANGELOG.md | 83 ++++++++++++++++++---------------------------------- 1 file changed, 28 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 401ab090bee..48f0caaaebe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,61 +48,34 @@ - Remove default features. You need to enable required features explicitly now. As a quick workaround, you may want to use the new `full` feature which activates all features. See [PR 2918]. -- Update to [`libp2p-core` `v0.37.0`](core/CHANGELOG.md#0361). - -- Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). - -- Update to [`libp2p-swarm-derive` `v0.30.1`](swarm-derive/CHANGELOG.md#0301). - -- Update to [`libp2p-metrics` `v0.10.0`](misc/metrics/CHANGELOG.md#0100). - -- Update to [`libp2p-kad` `v0.41.0`](protocols/kad/CHANGELOG.md#0410). -- -- Update to [`libp2p-identify` `v0.39.1`](protocols/identify/CHANGELOG.md#0400). - -- Update to [`libp2p-autonat` `v0.8.0`](protocols/autonat/CHANGELOG.md#0080). - -- Update to [`libp2p-dcutr` `v0.7.0`](protocols/dcutr/CHANGELOG.md#0070). - -- Update to [`libp2p-floodsub` `v0.40.0`](protocols/floodsub/CHANGELOG.md#0400). - -- Update to [`libp2p-identify` `v0.40.0`](protocols/identify/CHANGELOG.md#0400). - -- Update to [`libp2p-mplex` `v0.37.0`](muxers/mplex/CHANGELOG.md#0370). - -- Update to [`libp2p-yamux` `v0.41.0`](muxers/mplex/CHANGELOG.md#0410). - -- Update to [`libp2p-noise` `v0.40.0`](transports/noise/CHANGELOG.md#0400). - -- Update to [`libp2p-ping` `v0.40.0`](protocols/ping/CHANGELOG.md#0400). - -- Update to [`libp2p-plaintext` `v0.37.0`](transports/plaintext/CHANGELOG.md#0370). - -- Update to [`libp2p-relay` `v0.13.0`](protocols/relay/CHANGELOG.md#0130). - -- Update to [`libp2p-rendezvous` `v0.10.0`](protocols/rendezovus/CHANGELOG.md#0100). - -- Update to [`libp2p-request-response` `v0.22.0`](protocols/request-response/CHANGELOG.md#0220). - -- Update to [`libp2p-swarm` `v0.40.0`](swarm/CHANGELOG.md#0400). - -- Update to [`libp2p-uds` `v0.36.0`](transports/uds/CHANGELOG.md#0360). - -- Update to [`libp2p-wasm-ext` `v0.37.0`](transports/wasm-ext/CHANGELOG.md#0370). - -- Update to [`libp2p-deflate` `v0.37.0`](transports/deflate/CHANGELOG.md#0370). - -- Update to [`libp2p-dns` `v0.37.0`](transports/dns/CHANGELOG.md#0370). - -- Update to [`libp2p-mdns` `v0.41.0`](protocols/mdns/CHANGELOG.md#0410). - -- Update to [`libp2p-websocket` `v0.39.0`](transports/websocket/CHANGELOG.md#0390). - -- Update to [`libp2p-gossipsub` `v0.42.0`](protocols/gossipsub/CHANGELOG.md#0420). - -[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 - -- Update to [`libp2p-swarm` `v0.39.1`](swarm/CHANGELOG.md#0391). +- Update individual crates. + - Update to [`libp2p-autonat` `v0.8.0`](protocols/autonat/CHANGELOG.md#0080). + - Update to [`libp2p-core` `v0.37.0`](core/CHANGELOG.md#0361). + - Update to [`libp2p-dcutr` `v0.7.0`](protocols/dcutr/CHANGELOG.md#0070). + - Update to [`libp2p-deflate` `v0.37.0`](transports/deflate/CHANGELOG.md#0370). + - Update to [`libp2p-dns` `v0.37.0`](transports/dns/CHANGELOG.md#0370). + - Update to [`libp2p-floodsub` `v0.40.0`](protocols/floodsub/CHANGELOG.md#0400). + - Update to [`libp2p-gossipsub` `v0.42.0`](protocols/gossipsub/CHANGELOG.md#0420). + - Update to [`libp2p-identify` `v0.40.0`](protocols/identify/CHANGELOG.md#0400). + - Update to [`libp2p-kad` `v0.41.0`](protocols/kad/CHANGELOG.md#0410). + - Update to [`libp2p-mdns` `v0.41.0`](protocols/mdns/CHANGELOG.md#0410). + - Update to [`libp2p-metrics` `v0.10.0`](misc/metrics/CHANGELOG.md#0100). + - Update to [`libp2p-mplex` `v0.37.0`](muxers/mplex/CHANGELOG.md#0370). + - Update to [`libp2p-noise` `v0.40.0`](transports/noise/CHANGELOG.md#0400). + - Update to [`libp2p-ping` `v0.40.0`](protocols/ping/CHANGELOG.md#0400). + - Update to [`libp2p-plaintext` `v0.37.0`](transports/plaintext/CHANGELOG.md#0370). + - Update to [`libp2p-relay` `v0.13.0`](protocols/relay/CHANGELOG.md#0130). + - Update to [`libp2p-rendezvous` `v0.10.0`](protocols/rendezovus/CHANGELOG.md#0100). + - Update to [`libp2p-request-response` `v0.22.0`](protocols/request-response/CHANGELOG.md#0220). + - Update to [`libp2p-swarm-derive` `v0.30.1`](swarm-derive/CHANGELOG.md#0301). + - Update to [`libp2p-swarm` `v0.40.0`](swarm/CHANGELOG.md#0400). + - Update to [`libp2p-tcp` `v0.37.0`](transports/tcp/CHANGELOG.md#0370). + - Update to [`libp2p-uds` `v0.36.0`](transports/uds/CHANGELOG.md#0360). + - Update to [`libp2p-wasm-ext` `v0.37.0`](transports/wasm-ext/CHANGELOG.md#0370). + - Update to [`libp2p-websocket` `v0.39.0`](transports/websocket/CHANGELOG.md#0390). + - Update to [`libp2p-yamux` `v0.41.0`](muxers/mplex/CHANGELOG.md#0410). + +- [PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.48.0 From 8af0768c34ce2a6b75969cf08c98ecedff9321a8 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 28 Sep 2022 10:32:24 +1000 Subject: [PATCH 26/26] Fix bad link --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f0caaaebe..f1cf6eed30c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ - Update individual crates. - Update to [`libp2p-autonat` `v0.8.0`](protocols/autonat/CHANGELOG.md#0080). - - Update to [`libp2p-core` `v0.37.0`](core/CHANGELOG.md#0361). + - Update to [`libp2p-core` `v0.37.0`](core/CHANGELOG.md#0370). - Update to [`libp2p-dcutr` `v0.7.0`](protocols/dcutr/CHANGELOG.md#0070). - Update to [`libp2p-deflate` `v0.37.0`](transports/deflate/CHANGELOG.md#0370). - Update to [`libp2p-dns` `v0.37.0`](transports/dns/CHANGELOG.md#0370).