*: Make libp2p-core default features optional (#2181)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Ruben De Smet 2021-08-18 12:08:45 +02:00 committed by GitHub
parent 49acf2eb5b
commit f2905c07f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
40 changed files with 77 additions and 21 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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]

View File

@ -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"

View File

@ -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`.

View File

@ -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"

View File

@ -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]

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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]

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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.

View File

@ -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"

View File

@ -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].

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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`,

View File

@ -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"

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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"] }

View File

@ -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]

View File

@ -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"

View File

@ -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]

View File

@ -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"] }

View File

@ -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]

View File

@ -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 }

View File

@ -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]

View File

@ -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 }

View File

@ -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]

View File

@ -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"

View File

@ -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]

View File

@ -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"