From 6b4dc297b235c191d0a168c872973701c08c52c1 Mon Sep 17 00:00:00 2001
From: Ruben De Smet <ruben.de.smet@rubdos.be>
Date: Wed, 18 Aug 2021 12:08:45 +0200
Subject: [PATCH] *: Make libp2p-core default features optional (#2181)

Co-authored-by: Max Inden <mail@max-inden.de>
---
 misc/multistream-select/Cargo.toml      | 2 +-
 misc/peer-id-generator/Cargo.toml       | 2 +-
 muxers/mplex/CHANGELOG.md               | 2 ++
 muxers/mplex/Cargo.toml                 | 2 +-
 muxers/yamux/CHANGELOG.md               | 3 +++
 muxers/yamux/Cargo.toml                 | 2 +-
 protocols/floodsub/CHANGELOG.md         | 3 +++
 protocols/floodsub/Cargo.toml           | 2 +-
 protocols/gossipsub/CHANGELOG.md        | 3 +++
 protocols/gossipsub/Cargo.toml          | 2 +-
 protocols/identify/CHANGELOG.md         | 3 +++
 protocols/identify/Cargo.toml           | 2 +-
 protocols/kad/CHANGELOG.md              | 3 +++
 protocols/kad/Cargo.toml                | 2 +-
 protocols/mdns/CHANGELOG.md             | 3 +++
 protocols/mdns/Cargo.toml               | 2 +-
 protocols/ping/CHANGELOG.md             | 3 +++
 protocols/ping/Cargo.toml               | 2 +-
 protocols/relay/CHANGELOG.md            | 3 +++
 protocols/relay/Cargo.toml              | 2 +-
 protocols/request-response/CHANGELOG.md | 3 +++
 protocols/request-response/Cargo.toml   | 2 +-
 swarm/CHANGELOG.md                      | 3 +++
 swarm/Cargo.toml                        | 2 +-
 transports/deflate/CHANGELOG.md         | 3 +++
 transports/deflate/Cargo.toml           | 2 +-
 transports/dns/CHANGELOG.md             | 3 +++
 transports/dns/Cargo.toml               | 2 +-
 transports/noise/CHANGELOG.md           | 3 +++
 transports/noise/Cargo.toml             | 2 +-
 transports/plaintext/CHANGELOG.md       | 3 +++
 transports/plaintext/Cargo.toml         | 2 +-
 transports/tcp/CHANGELOG.md             | 3 +++
 transports/tcp/Cargo.toml               | 2 +-
 transports/uds/CHANGELOG.md             | 3 +++
 transports/uds/Cargo.toml               | 2 +-
 transports/wasm-ext/CHANGELOG.md        | 3 +++
 transports/wasm-ext/Cargo.toml          | 2 +-
 transports/websocket/CHANGELOG.md       | 3 +++
 transports/websocket/Cargo.toml         | 2 +-
 40 files changed, 77 insertions(+), 21 deletions(-)

diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml
index f839e3be..2f6a72db 100644
--- a/misc/multistream-select/Cargo.toml
+++ b/misc/multistream-select/Cargo.toml
@@ -20,7 +20,7 @@ unsigned-varint = "0.7"
 [dev-dependencies]
 async-std = "1.6.2"
 env_logger = "0.9"
-libp2p-core = { path = "../../core" }
+libp2p-core = { path = "../../core", default-features = false }
 libp2p-mplex = { path = "../../muxers/mplex" }
 libp2p-plaintext = { path = "../../transports/plaintext" }
 quickcheck = "0.9.0"
diff --git a/misc/peer-id-generator/Cargo.toml b/misc/peer-id-generator/Cargo.toml
index 1c23bf1f..da1cad6b 100644
--- a/misc/peer-id-generator/Cargo.toml
+++ b/misc/peer-id-generator/Cargo.toml
@@ -11,5 +11,5 @@ categories = ["network-programming", "asynchronous"]
 publish = false
 
 [dependencies]
-libp2p-core = { path = "../../core" }
+libp2p-core = { path = "../../core", default-features = false }
 num_cpus = "1.8"
diff --git a/muxers/mplex/CHANGELOG.md b/muxers/mplex/CHANGELOG.md
index b0b697ae..6cc5d5c6 100644
--- a/muxers/mplex/CHANGELOG.md
+++ b/muxers/mplex/CHANGELOG.md
@@ -1,5 +1,7 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml
index df0033de..285fe386 100644
--- a/muxers/mplex/Cargo.toml
+++ b/muxers/mplex/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
 bytes = "1"
 futures = "0.3.1"
 asynchronous-codec = "0.6"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 log = "0.4"
 nohash-hasher = "0.2"
 parking_lot = "0.11"
diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md
index 697f3636..7ca9c0bb 100644
--- a/muxers/yamux/CHANGELOG.md
+++ b/muxers/yamux/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.34.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Implement `From<io::Error> for YamuxError` instead of `Into`.
diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml
index 28a47cb5..c9984b65 100644
--- a/muxers/yamux/Cargo.toml
+++ b/muxers/yamux/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
 
 [dependencies]
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 parking_lot = "0.11"
 thiserror = "1.0"
 yamux = "0.9.0"
diff --git a/protocols/floodsub/CHANGELOG.md b/protocols/floodsub/CHANGELOG.md
index 6abdd6f8..c0f65131 100644
--- a/protocols/floodsub/CHANGELOG.md
+++ b/protocols/floodsub/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.31.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.30.0 [2021-07-12]
diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml
index b4b5b51f..0b8bf67b 100644
--- a/protocols/floodsub/Cargo.toml
+++ b/protocols/floodsub/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
 cuckoofilter = "0.5.0"
 fnv = "1.0"
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4"
 prost = "0.8"
diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md
index 69e0f4f3..da528c79 100644
--- a/protocols/gossipsub/CHANGELOG.md
+++ b/protocols/gossipsub/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.33.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Improve internal peer tracking.
   [PR 2175](https://github.com/libp2p/rust-libp2p/pull/2175)
 
diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml
index 1b99bfbf..115051a5 100644
--- a/protocols/gossipsub/Cargo.toml
+++ b/protocols/gossipsub/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
 
 [dependencies]
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 bytes = "1.0"
 byteorder = "1.3.4"
 fnv = "1.0.7"
diff --git a/protocols/identify/CHANGELOG.md b/protocols/identify/CHANGELOG.md
index 2b5a255d..b05cafa7 100644
--- a/protocols/identify/CHANGELOG.md
+++ b/protocols/identify/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.31.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.30.0 [2021-07-12]
diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml
index 8213edc8..6f6c37d1 100644
--- a/protocols/identify/Cargo.toml
+++ b/protocols/identify/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
 
 [dependencies]
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4.1"
 prost = "0.8"
diff --git a/protocols/kad/CHANGELOG.md b/protocols/kad/CHANGELOG.md
index 7a38eb64..e344f9c2 100644
--- a/protocols/kad/CHANGELOG.md
+++ b/protocols/kad/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.32.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Introduce `KademliaStoreInserts` option, which allows to filter records (see
diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml
index 2dd5e728..20fe6fe2 100644
--- a/protocols/kad/Cargo.toml
+++ b/protocols/kad/Cargo.toml
@@ -17,7 +17,7 @@ fnv = "1.0"
 asynchronous-codec = "0.6"
 futures = "0.3.1"
 log = "0.4"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 prost = "0.8"
 rand = "0.7.2"
diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md
index 899222c6..d91e42d5 100644
--- a/protocols/mdns/CHANGELOG.md
+++ b/protocols/mdns/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.32.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Add support for IPv6. To enable set the multicast address
diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml
index 64cf9263..43370a9b 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 = "0.2.0"
 lazy_static = "1.4.0"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4.14"
 rand = "0.8.3"
diff --git a/protocols/ping/CHANGELOG.md b/protocols/ping/CHANGELOG.md
index 9d7e86a7..99595428 100644
--- a/protocols/ping/CHANGELOG.md
+++ b/protocols/ping/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.31.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Don't close connection if ping protocol is unsupported by remote.
diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml
index 7d3c093e..24924c48 100644
--- a/protocols/ping/Cargo.toml
+++ b/protocols/ping/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
 
 [dependencies]
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4.1"
 rand = "0.7.2"
diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md
index 3e7deca2..9f2857bf 100644
--- a/protocols/relay/CHANGELOG.md
+++ b/protocols/relay/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.4.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Implement `Debug` for `RelayHandlerEvent` and `RelayHandlerIn`. See [PR 2183].
diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml
index 159dd7c0..aedfe262 100644
--- a/protocols/relay/Cargo.toml
+++ b/protocols/relay/Cargo.toml
@@ -14,7 +14,7 @@ asynchronous-codec = "0.6"
 bytes = "1"
 futures = "0.3.1"
 futures-timer = "3"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4"
 pin-project = "1"
diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md
index 973fbe3f..08be7686 100644
--- a/protocols/request-response/CHANGELOG.md
+++ b/protocols/request-response/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.13.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Manually implement `Debug` for `RequestResponseHandlerEvent` and
diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml
index 40bc3900..517e1184 100644
--- a/protocols/request-response/Cargo.toml
+++ b/protocols/request-response/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
 async-trait = "0.1"
 bytes = "1"
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 libp2p-swarm = { version = "0.31.0", path = "../../swarm" }
 log = "0.4.11"
 lru = "0.6"
diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md
index 2afa04c9..4eacf3df 100644
--- a/swarm/CHANGELOG.md
+++ b/swarm/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.31.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 - Provide default implementations for all functions of `NetworkBehaviour`,
diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml
index b7ea6525..33b482f2 100644
--- a/swarm/Cargo.toml
+++ b/swarm/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]
 [dependencies]
 either = "1.6.0"
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../core" }
+libp2p-core = { version = "0.30.0", path = "../core", default-features = false }
 log = "0.4"
 rand = "0.7"
 smallvec = "1.6.1"
diff --git a/transports/deflate/CHANGELOG.md b/transports/deflate/CHANGELOG.md
index 4a43c23b..72bdaba8 100644
--- a/transports/deflate/CHANGELOG.md
+++ b/transports/deflate/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml
index 6ab23c1c..3ce579f0 100644
--- a/transports/deflate/Cargo.toml
+++ b/transports/deflate/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
 
 [dependencies]
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 flate2 = "1.0"
 
 [dev-dependencies]
diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md
index 96b4f41b..41c0cc06 100644
--- a/transports/dns/CHANGELOG.md
+++ b/transports/dns/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml
index df388345..51c9a8fa 100644
--- a/transports/dns/Cargo.toml
+++ b/transports/dns/Cargo.toml
@@ -10,7 +10,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
 categories = ["network-programming", "asynchronous"]
 
 [dependencies]
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4.1"
 futures = "0.3.1"
 trust-dns-resolver = { version = "0.20", default-features = false, features = ["system-config"] }
diff --git a/transports/noise/CHANGELOG.md b/transports/noise/CHANGELOG.md
index 1df94010..67830fb0 100644
--- a/transports/noise/CHANGELOG.md
+++ b/transports/noise/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.33.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.32.0 [2021-07-12]
diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml
index cf3880ec..201d7293 100644
--- a/transports/noise/Cargo.toml
+++ b/transports/noise/Cargo.toml
@@ -12,7 +12,7 @@ bytes = "1"
 curve25519-dalek = "3.0.0"
 futures = "0.3.1"
 lazy_static = "1.2"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4"
 prost = "0.8"
 rand = "0.8.3"
diff --git a/transports/plaintext/CHANGELOG.md b/transports/plaintext/CHANGELOG.md
index 88f9e8d4..dfbf8d07 100644
--- a/transports/plaintext/CHANGELOG.md
+++ b/transports/plaintext/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml
index f9b206fb..e0f7d677 100644
--- a/transports/plaintext/Cargo.toml
+++ b/transports/plaintext/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
 bytes = "1"
 futures = "0.3.1"
 asynchronous-codec = "0.6"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4.8"
 prost = "0.8"
 unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] }
diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md
index 6972aa2a..325672e1 100644
--- a/transports/tcp/CHANGELOG.md
+++ b/transports/tcp/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml
index a4572cbc..7e56026a 100644
--- a/transports/tcp/Cargo.toml
+++ b/transports/tcp/Cargo.toml
@@ -17,7 +17,7 @@ if-watch = { version = "0.2.0", optional = true }
 if-addrs = { version = "0.6.4", optional = true }
 ipnet = "2.0.0"
 libc = "0.2.80"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4.11"
 socket2 = { version = "0.4.0", features = ["all"] }
 tokio-crate = { package = "tokio", version = "1.0.1", default-features = false, features = ["net"], optional = true }
diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md
index ce66f13c..fe900a22 100644
--- a/transports/uds/CHANGELOG.md
+++ b/transports/uds/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml
index 1a079ab8..84aca645 100644
--- a/transports/uds/Cargo.toml
+++ b/transports/uds/Cargo.toml
@@ -11,7 +11,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.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4.1"
 futures = "0.3.1"
 tokio = { version = "1.0.1", default-features = false, features = ["net"], optional = true }
diff --git a/transports/wasm-ext/CHANGELOG.md b/transports/wasm-ext/CHANGELOG.md
index a5047f28..278aaa01 100644
--- a/transports/wasm-ext/CHANGELOG.md
+++ b/transports/wasm-ext/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.30.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.29.0 [2021-07-12]
diff --git a/transports/wasm-ext/Cargo.toml b/transports/wasm-ext/Cargo.toml
index bc34c374..d5d0139b 100644
--- a/transports/wasm-ext/Cargo.toml
+++ b/transports/wasm-ext/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]
 [dependencies]
 futures = "0.3.1"
 js-sys = "0.3.50"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 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 eddc2a8f..c3cfd407 100644
--- a/transports/websocket/CHANGELOG.md
+++ b/transports/websocket/CHANGELOG.md
@@ -1,5 +1,8 @@
 # 0.31.0 [unreleased]
 
+- Make default features of `libp2p-core` optional.
+  [PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
+
 - Update dependencies.
 
 # 0.30.0 [2021-07-12]
diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml
index 5fce54bc..a7feeac7 100644
--- a/transports/websocket/Cargo.toml
+++ b/transports/websocket/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
 futures-rustls = "0.21"
 either = "1.5.3"
 futures = "0.3.1"
-libp2p-core = { version = "0.30.0", path = "../../core" }
+libp2p-core = { version = "0.30.0", path = "../../core", default-features = false  }
 log = "0.4.8"
 quicksink = "0.1"
 rw-stream-sink = "0.2.0"