From f6bb846c366ea3a93fdd297b7d9671ac17a58275 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 30 Sep 2022 01:32:22 +1000 Subject: [PATCH] *: Remove default features from all crates (#2918) 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. --- .github/workflows/ci.yml | 26 +++++++- CHANGELOG.md | 52 ++++++++------- Cargo.toml | 87 ++++++++++++++++--------- core/CHANGELOG.md | 6 +- core/Cargo.toml | 5 +- misc/keygen/Cargo.toml | 2 +- misc/metrics/CHANGELOG.md | 14 ++++ misc/metrics/Cargo.toml | 16 ++--- misc/multistream-select/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 6 +- muxers/yamux/CHANGELOG.md | 4 ++ muxers/yamux/Cargo.toml | 4 +- protocols/autonat/CHANGELOG.md | 8 +++ protocols/autonat/Cargo.toml | 10 +-- protocols/dcutr/CHANGELOG.md | 6 ++ protocols/dcutr/Cargo.toml | 8 +-- protocols/floodsub/CHANGELOG.md | 6 +- protocols/floodsub/Cargo.toml | 6 +- protocols/gossipsub/CHANGELOG.md | 6 +- protocols/gossipsub/Cargo.toml | 8 +-- protocols/identify/CHANGELOG.md | 6 +- protocols/identify/Cargo.toml | 15 ++--- protocols/kad/CHANGELOG.md | 4 ++ protocols/kad/Cargo.toml | 6 +- protocols/mdns/CHANGELOG.md | 10 +++ protocols/mdns/Cargo.toml | 9 ++- protocols/ping/CHANGELOG.md | 6 +- protocols/ping/Cargo.toml | 8 +-- protocols/relay/CHANGELOG.md | 6 ++ protocols/relay/Cargo.toml | 8 +-- protocols/rendezvous/CHANGELOG.md | 6 ++ protocols/rendezvous/Cargo.toml | 8 +-- protocols/request-response/CHANGELOG.md | 6 +- protocols/request-response/Cargo.toml | 8 +-- swarm-derive/Cargo.toml | 2 +- swarm/CHANGELOG.md | 4 +- swarm/Cargo.toml | 6 +- transports/deflate/CHANGELOG.md | 4 ++ transports/deflate/Cargo.toml | 6 +- transports/dns/CHANGELOG.md | 8 +++ transports/dns/Cargo.toml | 5 +- transports/noise/CHANGELOG.md | 4 +- transports/noise/Cargo.toml | 6 +- transports/plaintext/CHANGELOG.md | 4 ++ transports/plaintext/Cargo.toml | 4 +- transports/tcp/CHANGELOG.md | 5 ++ transports/tcp/Cargo.toml | 3 +- transports/uds/CHANGELOG.md | 8 +++ transports/uds/Cargo.toml | 7 +- transports/wasm-ext/CHANGELOG.md | 4 ++ transports/wasm-ext/Cargo.toml | 4 +- transports/websocket/CHANGELOG.md | 4 ++ transports/websocket/Cargo.toml | 6 +- 53 files changed, 323 insertions(+), 159 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1509406f8a..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 @@ -187,3 +187,27 @@ jobs: - name: Check formatting run: cargo fmt -- --check + + 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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 69877b0bbd3..f1cf6eed30c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,31 +45,37 @@ # 0.49.0 - [unreleased] -- Update to [`libp2p-core` `v0.36.1`](core/CHANGELOG.md#0361). +- 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). - Update individual crates. - - Update to [`libp2p-ping` `v0.39.1`](protocols/ping/CHANGELOG.md#0391). - - Update to [`libp2p-floodsub` `v0.39.1`](protocols/floodsub/CHANGELOG.md#0391). - - Update to [`libp2p-gossipsub` `v0.41.1`](protocols/gossipsub/CHANGELOG.md#0411). - - Update to [`libp2p-request-response` `v0.21.1`](protocols/request-response/CHANGELOG.md#0211). - - Update to [`libp2p-pnet` `v0.22.1`](transports/pnet/CHANGELOG.md#0221). - - Update to [`libp2p-mplex` `v0.36.1`](muxers/mplex/CHANGELOG.md#0361). - - Update to [`libp2p-swarm` `v0.39.1`](swarm/CHANGELOG.md#0391). -- -- Update to [`libp2p-noise` `v0.39.1`](transports/noise/CHANGELOG.md#0391). - -- 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-noise` `v0.39.1`](transports/noise/CHANGELOG.md#0391). - -- Update to [`libp2p-swarm` `v0.39.1`](swarm/CHANGELOG.md#0391). + - Update to [`libp2p-autonat` `v0.8.0`](protocols/autonat/CHANGELOG.md#0080). + - 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). + - 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 diff --git a/Cargo.toml b/Cargo.toml index 26136ae1c60..38afecb9372 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,32 +11,40 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [features] -default = [ +full = [ "autonat", + "dcutr", "deflate", "dns-async-std", + "dns-tokio", + "ecdsa", "floodsub", + "gossipsub", "identify", "kad", - "gossipsub", "mdns-async-io", + "mdns-tokio", + "metrics", "mplex", "noise", "ping", "plaintext", "pnet", "relay", - "request-response", "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"] @@ -67,6 +75,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] @@ -80,40 +89,40 @@ 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.1", path = "core", default-features = false } -libp2p-dcutr = { version = "0.6.0", path = "protocols/dcutr", optional = true } -libp2p-floodsub = { version = "0.39.1", path = "protocols/floodsub", optional = true } -libp2p-identify = { version = "0.39.1", path = "protocols/identify", optional = true } +libp2p-autonat = { version = "0.8.0", path = "protocols/autonat", optional = true } +libp2p-core = { version = "0.37.1", path = "core" } +libp2p-dcutr = { version = "0.7.0", path = "protocols/dcutr", optional = true } +libp2p-floodsub = { version = "0.40.1", path = "protocols/floodsub", optional = true } +libp2p-identify = { version = "0.40.1", 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.1", path = "muxers/mplex", optional = true } -libp2p-noise = { version = "0.39.1", path = "transports/noise", optional = true } -libp2p-ping = { version = "0.39.1", path = "protocols/ping", optional = true } -libp2p-plaintext = { version = "0.36.0", path = "transports/plaintext", optional = true } +libp2p-mplex = { version = "0.37.1", path = "muxers/mplex", optional = true } +libp2p-noise = { version = "0.40.0", path = "transports/noise", optional = true } +libp2p-ping = { version = "0.40.1", path = "protocols/ping", optional = true } +libp2p-plaintext = { version = "0.37.0", path = "transports/plaintext", optional = true } libp2p-pnet = { version = "0.22.1", 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.1", path = "protocols/request-response", optional = true } -libp2p-swarm = { version = "0.39.1", 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.1", path = "protocols/request-response", optional = true } +libp2p-swarm = { version = "0.40.1", 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", 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" 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-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-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", 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.1", path = "protocols/gossipsub", optional = true } +libp2p-gossipsub = { version = "0.42.1", path = "protocols/gossipsub", optional = true } [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } @@ -159,20 +168,36 @@ members = [ [[example]] name = "chat" -required-features = ["floodsub"] +required-features = ["full"] [[example]] name = "chat-tokio" -required-features = ["tcp-tokio", "mdns-tokio"] +required-features = ["full"] [[example]] name = "file-sharing" -required-features = ["request-response"] +required-features = ["full"] [[example]] name = "gossipsub-chat" -required-features = ["gossipsub"] +required-features = ["full"] [[example]] name = "ipfs-private" -required-features = ["gossipsub", "pnet", "yamux", "ping", "noise", "tcp-async-io", "identify"] +required-features = ["full"] + +[[example]] +name = "ipfs-kad" +required-features = ["full"] + +[[example]] +name = "ping" +required-features = ["full"] + +[[example]] +name = "mdns-passive-discovery" +required-features = ["full"] + +[[example]] +name = "distributed-key-value-store" +required-features = ["full"] diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index deb921e9d25..9f258c88a24 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,8 +1,12 @@ -# 0.36.1 - [unreleased] +# 0.37.0 [unreleased] - Implement `Hash` and `Ord` for `PublicKey`. See [PR 2915]. +- Remove default features. If you previously depended on `secp256k1` or `ecdsa` you need to enable these explicitly + now. See [PR 2918]. + [PR 2915]: https://github.com/libp2p/rust-libp2p/pull/2915 +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.36.0 diff --git a/core/Cargo.toml b/core/Cargo.toml index 0807190dc9d..fe15116e816 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.1" +version = "0.37.1" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -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 = ["full"] } multihash = { version = "0.16", default-features = false, features = ["arb"] } quickcheck = { package = "quickcheck-ext", path = "../misc/quickcheck-ext" } rmp-serde = "1.0" @@ -56,7 +56,6 @@ serde_json = "1.0" prost-build = "0.11" [features] -default = [ "secp256k1", "ecdsa" ] secp256k1 = [ "libsecp256k1" ] ecdsa = [ "p256" ] rsa = [ "dep:ring" ] diff --git a/misc/keygen/Cargo.toml b/misc/keygen/Cargo.toml index 36e01709df9..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 = { path = "../../core", default-features = false, version = "0.36.0"} +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 20e2741e338..6997b6996d0 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -4,6 +4,20 @@ - - Update to `libp2p-identify` `v0.39.1`. +- 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`. + +- Update to `libp2p-gossipsub` `v0.42.0`. + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index d8f5209e178..643d96e67ab 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -19,22 +19,22 @@ relay = ["libp2p-relay"] dcutr = ["libp2p-dcutr"] [dependencies] -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } -libp2p-dcutr = { version = "0.6.0", path = "../../protocols/dcutr", optional = true } -libp2p-identify = { version = "0.39.1", 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.1", 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" 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 = ["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 0e0dde2af75..c669eb314aa 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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } rand = "0.8" 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 04d28907ef2..f7736d54ba9 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.1" +version = "0.37.1" 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", default-features = false } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4" nohash-hasher = "0.2" parking_lot = "0.12" @@ -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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } [[bench]] diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index ce64ed1c182..41eff104500 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 c5a59e327c6..10800a78c3c 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", default-features = false } +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..06809d78c29 100644 --- a/protocols/autonat/CHANGELOG.md +++ b/protocols/autonat/CHANGELOG.md @@ -1,3 +1,11 @@ +# 0.8.0 [unreleased] + +- 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/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index 62b006ca2bc..ed117c9edf4 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", default-features = false } -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" @@ -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 = ["full"] } diff --git a/protocols/dcutr/CHANGELOG.md b/protocols/dcutr/CHANGELOG.md index f6742cf5581..8f98e3257d6 100644 --- a/protocols/dcutr/CHANGELOG.md +++ b/protocols/dcutr/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.7.0 [unreleased] + +- 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/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index d53d92d32c3..dbdf9494d9b 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", default-features = false } -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" @@ -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 = ["full"] } rand = "0.8" clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/floodsub/CHANGELOG.md b/protocols/floodsub/CHANGELOG.md index 0770b97bed8..e7c1392c642 100644 --- a/protocols/floodsub/CHANGELOG.md +++ b/protocols/floodsub/CHANGELOG.md @@ -1,7 +1,11 @@ -# 0.39.1 [unreleased] +# 0.40.0 [unreleased] - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 # 0.39.0 diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index e89bbd3fdb7..f030e7477d9 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.1" +version = "0.40.1" 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", default-features = false } -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.8" diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index 4699fe664a5..99d2ad3a1c3 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -1,7 +1,11 @@ -# 0.41.1 [unreleased] +# 0.42.0 [unreleased] - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 # 0.41.0 diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index b99788f59e1..00778ef0688 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.1" +version = "0.42.1" 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", default-features = false } +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" @@ -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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } hex = "0.4.2" derive_builder = "0.11.1" diff --git a/protocols/identify/CHANGELOG.md b/protocols/identify/CHANGELOG.md index 3e9d6eb96e2..215eb3f573e 100644 --- a/protocols/identify/CHANGELOG.md +++ b/protocols/identify/CHANGELOG.md @@ -1,7 +1,11 @@ -# 0.39.1 [unreleased] +# 0.40.0 [unreleased] - Update dependencies. +- 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/identify/Cargo.toml b/protocols/identify/Cargo.toml index 34c6e3cf6fa..c06ce69976a 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.1" +version = "0.40.1" 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", default-features = false } -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.8.0" prost-codec = { version = "0.2", path = "../../misc/prost-codec" } @@ -27,14 +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 = [ - "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/CHANGELOG.md b/protocols/kad/CHANGELOG.md index 6ac2977d635..dcf4eedf2fb 100644 --- a/protocols/kad/CHANGELOG.md +++ b/protocols/kad/CHANGELOG.md @@ -5,6 +5,10 @@ - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2866]: https://github.com/libp2p/rust-libp2p/pull/2866 [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index aa9efc6e0da..e97394b7071 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", default-features = false } -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.8" sha2 = "0.10.0" @@ -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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } [build-dependencies] diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index 2be2db4079b..d6f7a89f7b0 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -1,3 +1,13 @@ +# 0.41.0 [unreleased] + +- 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`. + +- Update to `libp2p-swarm` `v0.40.0`. + +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 + # 0.40.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index 2ec4ac44958..466c9eb9e25 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", default-features = false } -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" @@ -28,14 +28,13 @@ 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"] [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 = ["full"] } tokio = { version = "1.19", default-features = false, features = ["macros", "rt", "rt-multi-thread", "time"] } diff --git a/protocols/ping/CHANGELOG.md b/protocols/ping/CHANGELOG.md index f7932c38b4f..dd0ade3d7bf 100644 --- a/protocols/ping/CHANGELOG.md +++ b/protocols/ping/CHANGELOG.md @@ -1,7 +1,11 @@ -# 0.39.1 [unreleased] +# 0.40.0 [unreleased] - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 # 0.39.0 diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 9f19af8d26e..70e03164318 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.1" +version = "0.40.1" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" @@ -14,13 +14,13 @@ 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-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.8" 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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index 1262a250880..9937fffec0e 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.13.0 [unreleased] + +- 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/relay/Cargo.toml b/protocols/relay/Cargo.toml index d7a772a18e0..052eb1127a8 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", default-features = false } -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" } @@ -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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } clap = {version = "3.1.6", features = ["derive"]} diff --git a/protocols/rendezvous/CHANGELOG.md b/protocols/rendezvous/CHANGELOG.md index edf55a5d420..3e04334ad50 100644 --- a/protocols/rendezvous/CHANGELOG.md +++ b/protocols/rendezvous/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.10.0 [unreleased] + +- 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/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 3eee5c833e6..fc25965bccd 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", default-features = false } -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" @@ -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 = ["full"] } rand = "0.8" tokio = { version = "1.15", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] } diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md index aabb121ad69..7e4ba48044d 100644 --- a/protocols/request-response/CHANGELOG.md +++ b/protocols/request-response/CHANGELOG.md @@ -1,7 +1,11 @@ -# 0.21.1 [unreleased] +# 0.22.0 [unreleased] - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + +- Update to `libp2p-swarm` `v0.40.0`. + [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 # 0.21.0 diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 3b0b23bb011..53e0b756392 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.1" +version = "0.22.1" 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", default-features = false } -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.8" smallvec = "1.6.1" @@ -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 = ["full"] } rand = "0.8" diff --git a/swarm-derive/Cargo.toml b/swarm-derive/Cargo.toml index 1d2c54a9da1..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 = "../", default-features = false, features = ["ping", "identify", "kad"] } +libp2p = { path = "..", features = ["full"] } either = "1.6.0" futures = "0.3.1" void = "1" diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md index a523397fc7f..15a12eece13 100644 --- a/swarm/CHANGELOG.md +++ b/swarm/CHANGELOG.md @@ -1,7 +1,9 @@ -# 0.39.1 [unreleased] +# 0.40.0 [unreleased] - Bump rand to 0.8 and quickcheck to 1. See [PR 2857]. +- Update to `libp2p-core` `v0.37.0`. + [PR 2857]: https://github.com/libp2p/rust-libp2p/pull/2857 - Pass actual `PeerId` of dial to `NetworkBehaviour::inject_dial_failure` on `DialError::ConnectionLimit`. See [PR 2928]. diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index 09137616935..adbb81cd70e 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.1" +version = "0.40.1" 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", default-features = false } +libp2p-core = { version = "0.37.0", path = "../core" } log = "0.4" pin-project = "1.0.0" rand = "0.8" @@ -27,5 +27,5 @@ 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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../misc/quickcheck-ext" } 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 0050d9f148d..bbb1e124771 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,11 +12,11 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures = "0.3.1" -libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } +libp2p-core = { version = "0.37.0", path = "../../core" } flate2 = "1.0" [dev-dependencies] async-std = "1.6.2" -libp2p = { path = "../../", default-features = false, features = ["tcp-async-io", "deflate"] } +libp2p = { path = "../..", features = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } rand = "0.8" diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md index a6c46fa4191..e20c92f66e0 100644 --- a/transports/dns/CHANGELOG.md +++ b/transports/dns/CHANGELOG.md @@ -1,3 +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 2918]. + +- Update to `libp2p-core` `v0.37.0`. + +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 + # 0.36.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index 51c9b688c73..35dce0404b6 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", default-features = false } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" async-std-resolver = { version = "0.21", optional = true } @@ -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, diff --git a/transports/noise/CHANGELOG.md b/transports/noise/CHANGELOG.md index 8dcb8926c32..bae8fd51edb 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 f886315236a..3f2c69900b5 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", default-features = false } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4" prost = "0.11" rand = "0.8.3" @@ -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 = ["full"] } quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" } libsodium-sys-stable = { version = "1.19.22", features = ["fetch-latest"] } ed25519-compact = "1.0.11" 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 557ffa3123a..1af9894d371 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", default-features = false } +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..d5582f43ebb 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -3,7 +3,12 @@ - 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`. + +- Remove default features. If you previously depended on `async-std` you need to enable this explicitly now. See [PR 2918]. + [PR 2813]: https://github.com/libp2p/rust-libp2p/pull/2813 +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 # 0.36.0 diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 948d9507f0a..06517a84f67 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -16,13 +16,12 @@ 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.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 } [features] -default = ["async-io"] tokio = ["tokio-crate"] async-io = ["async-io-crate"] diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md index 78f759803ee..6d7581890c9 100644 --- a/transports/uds/CHANGELOG.md +++ b/transports/uds/CHANGELOG.md @@ -1,3 +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 2918]. + +- Update to `libp2p-core` `v0.37.0`. + +[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918 + # 0.35.0 - Update to `libp2p-core` `v0.36.0`. diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index 3b7f1eb0a3f..e9483f503d1 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,13 +12,10 @@ 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.37.0", path = "../../core" } log = "0.4.1" futures = "0.3.1" tokio = { version = "1.15", default-features = false, features = ["net"], optional = true } [target.'cfg(all(unix, not(target_os = "emscripten")))'.dev-dependencies] tempfile = "3.0" - -[features] -default = ["async-std"] 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 6c6a645c8c2..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", default-features = false } +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 44a971fafbc..5402af48c6f 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", default-features = false } +libp2p-core = { version = "0.37.0", path = "../../core" } log = "0.4.8" parking_lot = "0.12.0" quicksink = "0.1" @@ -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 = ["full"] }