*: Switch futures_codec to asynchronous-codec (#1908)

`futures-codec` has not been updated in the recent months. It still
depends on `bytes` `v0.5` preventing all downstream dependencies to
upgrade to `bytes` `v1.0`.

This commit replaces `futures_codec` in favor of `asynchronous-codec`
The latter is a fully upgraded fork of the former.

In addition this commit upgrades:

- bytes to v1
- unsigned-varint to v0.6.0
- prost to v0.7
This commit is contained in:
Max Inden 2021-01-12 12:48:37 +01:00 committed by GitHub
parent aa2547ef6d
commit c98b9ef407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
53 changed files with 196 additions and 105 deletions

View File

@ -25,7 +25,9 @@
# Version 0.34.0 [unreleased] # Version 0.34.0 [unreleased]
- Update `libp2p-request-response`. - Update `libp2p-gossipsub`, `libp2p-kad` and `libp2p-request-response`.
- Update dependencies.
# Version 0.33.0 [2020-12-17] # Version 0.33.0 [2020-12-17]

View File

@ -58,37 +58,37 @@ all-features = true
[dependencies] [dependencies]
atomic = "0.5.0" atomic = "0.5.0"
bytes = "0.5" bytes = "1"
futures = "0.3.1" futures = "0.3.1"
lazy_static = "1.2" lazy_static = "1.2"
libp2p-core = { version = "0.26.0", path = "core" } libp2p-core = { version = "0.27.0", path = "core" }
libp2p-core-derive = { version = "0.21.0", path = "misc/core-derive" } libp2p-core-derive = { version = "0.21.0", path = "misc/core-derive" }
libp2p-floodsub = { version = "0.26.0", path = "protocols/floodsub", optional = true } libp2p-floodsub = { version = "0.27.0", path = "protocols/floodsub", optional = true }
libp2p-gossipsub = { version = "0.26.0", path = "./protocols/gossipsub", optional = true } libp2p-gossipsub = { version = "0.27.0", path = "./protocols/gossipsub", optional = true }
libp2p-identify = { version = "0.26.0", path = "protocols/identify", optional = true } libp2p-identify = { version = "0.27.0", path = "protocols/identify", optional = true }
libp2p-kad = { version = "0.27.1", path = "protocols/kad", optional = true } libp2p-kad = { version = "0.28.0", path = "protocols/kad", optional = true }
libp2p-mplex = { version = "0.26.0", path = "muxers/mplex", optional = true } libp2p-mplex = { version = "0.27.0", path = "muxers/mplex", optional = true }
libp2p-noise = { version = "0.28.0", path = "protocols/noise", optional = true } libp2p-noise = { version = "0.29.0", path = "protocols/noise", optional = true }
libp2p-ping = { version = "0.26.0", path = "protocols/ping", optional = true } libp2p-ping = { version = "0.27.0", path = "protocols/ping", optional = true }
libp2p-plaintext = { version = "0.26.0", path = "protocols/plaintext", optional = true } libp2p-plaintext = { version = "0.27.0", path = "protocols/plaintext", optional = true }
libp2p-pnet = { version = "0.20.0", path = "protocols/pnet", optional = true } libp2p-pnet = { version = "0.20.0", path = "protocols/pnet", optional = true }
libp2p-request-response = { version = "0.9.0", path = "protocols/request-response", optional = true } libp2p-request-response = { version = "0.9.0", path = "protocols/request-response", optional = true }
libp2p-swarm = { version = "0.26.0", path = "swarm" } libp2p-swarm = { version = "0.27.0", path = "swarm" }
libp2p-uds = { version = "0.26.0", path = "transports/uds", optional = true } libp2p-uds = { version = "0.27.0", path = "transports/uds", optional = true }
libp2p-wasm-ext = { version = "0.26.0", path = "transports/wasm-ext", optional = true } libp2p-wasm-ext = { version = "0.27.0", path = "transports/wasm-ext", optional = true }
libp2p-yamux = { version = "0.29.0", path = "muxers/yamux", optional = true } libp2p-yamux = { version = "0.30.0", path = "muxers/yamux", optional = true }
multiaddr = { package = "parity-multiaddr", version = "0.10.0", path = "misc/multiaddr" } multiaddr = { package = "parity-multiaddr", version = "0.11.0", path = "misc/multiaddr" }
parking_lot = "0.11.0" parking_lot = "0.11.0"
pin-project = "1.0.0" pin-project = "1.0.0"
smallvec = "1.0" smallvec = "1.0"
wasm-timer = "0.2.4" wasm-timer = "0.2.4"
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies] [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
libp2p-deflate = { version = "0.26.0", path = "protocols/deflate", optional = true } libp2p-deflate = { version = "0.27.0", path = "protocols/deflate", optional = true }
libp2p-dns = { version = "0.26.0", path = "transports/dns", optional = true } libp2p-dns = { version = "0.27.0", path = "transports/dns", optional = true }
libp2p-mdns = { version = "0.27.0", path = "protocols/mdns", optional = true } libp2p-mdns = { version = "0.28.0", path = "protocols/mdns", optional = true }
libp2p-tcp = { version = "0.26.0", path = "transports/tcp", optional = true } libp2p-tcp = { version = "0.27.0", path = "transports/tcp", optional = true }
libp2p-websocket = { version = "0.27.0", path = "transports/websocket", optional = true } libp2p-websocket = { version = "0.28.0", path = "transports/websocket", optional = true }
[dev-dependencies] [dev-dependencies]
async-std = "1.6.2" async-std = "1.6.2"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Make `PeerId` be `Copy`, including small `PeerId` API changes. - Make `PeerId` be `Copy`, including small `PeerId` API changes.

View File

@ -2,7 +2,7 @@
name = "libp2p-core" name = "libp2p-core"
edition = "2018" edition = "2018"
description = "Core traits and structs of libp2p" description = "Core traits and structs of libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -20,18 +20,18 @@ futures-timer = "3"
lazy_static = "1.2" lazy_static = "1.2"
libsecp256k1 = { version = "0.3.1", optional = true } libsecp256k1 = { version = "0.3.1", optional = true }
log = "0.4" log = "0.4"
multiaddr = { package = "parity-multiaddr", version = "0.10.0", path = "../misc/multiaddr" } multiaddr = { package = "parity-multiaddr", version = "0.11", path = "../misc/multiaddr" }
multihash = { version = "0.13", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] } multihash = { version = "0.13", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multistream-select = { version = "0.9.1", path = "../misc/multistream-select" } multistream-select = { version = "0.10", path = "../misc/multistream-select" }
parking_lot = "0.11.0" parking_lot = "0.11.0"
pin-project = "1.0.0" pin-project = "1.0.0"
prost = "0.6.1" prost = "0.7"
rand = "0.7" rand = "0.7"
rw-stream-sink = "0.2.0" rw-stream-sink = "0.2.0"
sha2 = "0.9.1" sha2 = "0.9.1"
smallvec = "1.0" smallvec = "1.0"
thiserror = "1.0" thiserror = "1.0"
unsigned-varint = "0.5" unsigned-varint = "0.6"
void = "1" void = "1"
zeroize = "1" zeroize = "1"

View File

@ -1,3 +1,7 @@
# 0.11.0 [unreleased]
- Update dependencies
# 0.10.1 [2021-01-12] # 0.10.1 [2021-01-12]
- Fix compilation with serde-1.0.119. - Fix compilation with serde-1.0.119.

View File

@ -6,7 +6,7 @@ description = "Implementation of the multiaddr format"
homepage = "https://github.com/libp2p/rust-libp2p" homepage = "https://github.com/libp2p/rust-libp2p"
keywords = ["multiaddr", "ipfs"] keywords = ["multiaddr", "ipfs"]
license = "MIT" license = "MIT"
version = "0.10.1" version = "0.11.0"
[features] [features]
default = ["url"] default = ["url"]
@ -20,7 +20,7 @@ multihash = { version = "0.13", default-features = false, features = ["std", "mu
percent-encoding = "2.1.0" percent-encoding = "2.1.0"
serde = "1.0.70" serde = "1.0.70"
static_assertions = "1.1" static_assertions = "1.1"
unsigned-varint = "0.5" unsigned-varint = "0.6"
url = { version = "2.1.0", optional = true, default-features = false } url = { version = "2.1.0", optional = true, default-features = false }
[dev-dependencies] [dev-dependencies]

View File

@ -1,3 +1,7 @@
# 0.10.0 [unreleased]
- Update dependencies.
# 0.9.1 [2020-12-02] # 0.9.1 [2020-12-02]
- Ensure uniform outcomes for failed negotiations with both - Ensure uniform outcomes for failed negotiations with both

View File

@ -1,7 +1,7 @@
[package] [package]
name = "multistream-select" name = "multistream-select"
description = "Multistream-select negotiation protocol for libp2p" description = "Multistream-select negotiation protocol for libp2p"
version = "0.9.1" version = "0.10.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -10,12 +10,12 @@ categories = ["network-programming", "asynchronous"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
bytes = "0.5" bytes = "1"
futures = "0.3" futures = "0.3"
log = "0.4" log = "0.4"
pin-project = "1.0.0" pin-project = "1.0.0"
smallvec = "1.0" smallvec = "1.0"
unsigned-varint = "0.5" unsigned-varint = "0.6"
[dev-dependencies] [dev-dependencies]
async-std = "1.6.2" async-std = "1.6.2"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-mplex" name = "libp2p-mplex"
edition = "2018" edition = "2018"
description = "Mplex multiplexing protocol for libp2p" description = "Mplex multiplexing protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -10,16 +10,16 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
bytes = "0.5" bytes = "1"
futures = "0.3.1" futures = "0.3.1"
futures_codec = "0.4.1" asynchronous-codec = "0.5.0"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4" log = "0.4"
nohash-hasher = "0.2" nohash-hasher = "0.2"
parking_lot = "0.11" parking_lot = "0.11"
rand = "0.7" rand = "0.7"
smallvec = "1.4" smallvec = "1.4"
unsigned-varint = { version = "0.5", features = ["futures-codec"] } unsigned-varint = { version = "0.6", features = ["asynchronous_codec"] }
[dev-dependencies] [dev-dependencies]
async-std = "1.7.0" async-std = "1.7.0"

View File

@ -19,7 +19,7 @@
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
use bytes::{BufMut, Bytes, BytesMut}; use bytes::{BufMut, Bytes, BytesMut};
use futures_codec::{Decoder, Encoder}; use asynchronous_codec::{Decoder, Encoder};
use libp2p_core::Endpoint; use libp2p_core::Endpoint;
use std::{fmt, hash::{Hash, Hasher}, io, mem}; use std::{fmt, hash::{Hash, Hasher}, io, mem};
use unsigned_varint::{codec, encode}; use unsigned_varint::{codec, encode};

View File

@ -24,7 +24,7 @@ use crate::codec::{Codec, Frame, LocalStreamId, RemoteStreamId};
use log::{debug, trace}; use log::{debug, trace};
use futures::{prelude::*, ready, stream::Fuse}; use futures::{prelude::*, ready, stream::Fuse};
use futures::task::{AtomicWaker, ArcWake, waker_ref, WakerRef}; use futures::task::{AtomicWaker, ArcWake, waker_ref, WakerRef};
use futures_codec::Framed; use asynchronous_codec::Framed;
use nohash_hasher::{IntMap, IntSet}; use nohash_hasher::{IntMap, IntSet};
use parking_lot::Mutex; use parking_lot::Mutex;
use smallvec::SmallVec; use smallvec::SmallVec;
@ -1006,7 +1006,7 @@ mod tests {
use async_std::task; use async_std::task;
use bytes::BytesMut; use bytes::BytesMut;
use futures::prelude::*; use futures::prelude::*;
use futures_codec::{Decoder, Encoder}; use asynchronous_codec::{Decoder, Encoder};
use quickcheck::*; use quickcheck::*;
use rand::prelude::*; use rand::prelude::*;
use std::collections::HashSet; use std::collections::HashSet;

View File

@ -1,3 +1,7 @@
# 0.30.0 [unreleased]
- Update dependencies.
# 0.29.0 [2020-12-17] # 0.29.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-yamux" name = "libp2p-yamux"
edition = "2018" edition = "2018"
description = "Yamux multiplexing protocol for libp2p" description = "Yamux multiplexing protocol for libp2p"
version = "0.29.0" version = "0.30.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
parking_lot = "0.11" parking_lot = "0.11"
thiserror = "1.0" thiserror = "1.0"
yamux = "0.8.0" yamux = "0.8.0"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-deflate" name = "libp2p-deflate"
edition = "2018" edition = "2018"
description = "Deflate encryption protocol for libp2p" description = "Deflate encryption protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
flate2 = "1.0" flate2 = "1.0"
[dev-dependencies] [dev-dependencies]

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-swarm` and `libp2p-core`. - Update `libp2p-swarm` and `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-floodsub" name = "libp2p-floodsub"
edition = "2018" edition = "2018"
description = "Floodsub protocol for libp2p" description = "Floodsub protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -13,10 +13,10 @@ categories = ["network-programming", "asynchronous"]
cuckoofilter = "0.5.0" cuckoofilter = "0.5.0"
fnv = "1.0" fnv = "1.0"
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
log = "0.4" log = "0.4"
prost = "0.6.1" prost = "0.7"
rand = "0.7" rand = "0.7"
smallvec = "1.0" smallvec = "1.0"

View File

@ -1,3 +1,10 @@
# 0.27.0 [unreleased]
- Update dependencies.
- Implement Gossipsub v1.1 specification.
[PR 1720](https://github.com/libp2p/rust-libp2p/pull/1720)
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-swarm` and `libp2p-core`. - Update `libp2p-swarm` and `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-gossipsub" name = "libp2p-gossipsub"
edition = "2018" edition = "2018"
description = "Gossipsub protocol for libp2p" description = "Gossipsub protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Age Manning <Age@AgeManning.com>"] authors = ["Age Manning <Age@AgeManning.com>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -10,21 +10,21 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
bytes = "0.5.6" bytes = "1.0"
byteorder = "1.3.4" byteorder = "1.3.4"
fnv = "1.0.7" fnv = "1.0.7"
futures = "0.3.5" futures = "0.3.5"
rand = "0.7.3" rand = "0.7.3"
futures_codec = "0.4.1" asynchronous-codec = "0.5"
wasm-timer = "0.2.4" wasm-timer = "0.2.4"
unsigned-varint = { version = "0.5.0", features = ["futures-codec"] } unsigned-varint = { version = "0.6.0", features = ["asynchronous-codec"] }
log = "0.4.11" log = "0.4.11"
sha2 = "0.9.1" sha2 = "0.9.1"
base64 = "0.13.0" base64 = "0.13.0"
smallvec = "1.4.2" smallvec = "1.4.2"
prost = "0.6.1" prost = "0.7"
hex_fmt = "0.3.0" hex_fmt = "0.3.0"
regex = "1.4.0" regex = "1.4.0"
@ -40,4 +40,4 @@ hex = "0.4.2"
derive_builder = "0.9.0" derive_builder = "0.9.0"
[build-dependencies] [build-dependencies]
prost-build = "0.6.1" prost-build = "0.7"

View File

@ -3251,7 +3251,7 @@ impl fmt::Debug for PublishConfig {
mod local_test { mod local_test {
use super::*; use super::*;
use crate::IdentTopic; use crate::IdentTopic;
use futures_codec::Encoder; use asynchronous_codec::Encoder;
use quickcheck::*; use quickcheck::*;
use rand::Rng; use rand::Rng;

View File

@ -24,7 +24,7 @@ use crate::protocol::{GossipsubCodec, ProtocolConfig};
use crate::types::{GossipsubRpc, PeerKind, RawGossipsubMessage}; use crate::types::{GossipsubRpc, PeerKind, RawGossipsubMessage};
use futures::prelude::*; use futures::prelude::*;
use futures::StreamExt; use futures::StreamExt;
use futures_codec::Framed; use asynchronous_codec::Framed;
use libp2p_core::upgrade::{InboundUpgrade, NegotiationError, OutboundUpgrade, UpgradeError}; use libp2p_core::upgrade::{InboundUpgrade, NegotiationError, OutboundUpgrade, UpgradeError};
use libp2p_swarm::protocols_handler::{ use libp2p_swarm::protocols_handler::{
KeepAlive, ProtocolsHandler, ProtocolsHandlerEvent, ProtocolsHandlerUpgrErr, SubstreamProtocol, KeepAlive, ProtocolsHandler, ProtocolsHandlerEvent, ProtocolsHandlerUpgrErr, SubstreamProtocol,

View File

@ -32,7 +32,7 @@ use bytes::Bytes;
use bytes::BytesMut; use bytes::BytesMut;
use futures::future; use futures::future;
use futures::prelude::*; use futures::prelude::*;
use futures_codec::{Decoder, Encoder, Framed}; use asynchronous_codec::{Decoder, Encoder, Framed};
use libp2p_core::{ use libp2p_core::{
identity::PublicKey, InboundUpgrade, OutboundUpgrade, PeerId, ProtocolName, UpgradeInfo, identity::PublicKey, InboundUpgrade, OutboundUpgrade, PeerId, ProtocolName, UpgradeInfo,
}; };

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-swarm` and `libp2p-core`. - Update `libp2p-swarm` and `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-identify" name = "libp2p-identify"
edition = "2018" edition = "2018"
description = "Nodes identifcation protocol for libp2p" description = "Nodes identifcation protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,10 +11,10 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
log = "0.4.1" log = "0.4.1"
prost = "0.6.1" prost = "0.7"
smallvec = "1.0" smallvec = "1.0"
wasm-timer = "0.2" wasm-timer = "0.2"

View File

@ -1,3 +1,7 @@
# 0.28.0 [unreleased]
- Update dependencies.
# 0.27.1 [2021-01-11] # 0.27.1 [2021-01-11]
- Add From impls for `kbucket::Key`. - Add From impls for `kbucket::Key`.

View File

@ -2,7 +2,7 @@
name = "libp2p-kad" name = "libp2p-kad"
edition = "2018" edition = "2018"
description = "Kademlia protocol for libp2p" description = "Kademlia protocol for libp2p"
version = "0.27.1" version = "0.28.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,21 +11,21 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
arrayvec = "0.5.1" arrayvec = "0.5.1"
bytes = "0.5" bytes = "1"
either = "1.5" either = "1.5"
fnv = "1.0" fnv = "1.0"
futures_codec = "0.4" asynchronous-codec = "0.5"
futures = "0.3.1" futures = "0.3.1"
log = "0.4" log = "0.4"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
prost = "0.6.1" prost = "0.7"
rand = "0.7.2" rand = "0.7.2"
sha2 = "0.9.1" sha2 = "0.9.1"
smallvec = "1.0" smallvec = "1.0"
wasm-timer = "0.2" wasm-timer = "0.2"
uint = "0.8" uint = "0.8"
unsigned-varint = { version = "0.5", features = ["futures-codec"] } unsigned-varint = { version = "0.6", features = ["asynchronous_codec"] }
void = "1.0" void = "1.0"
[dev-dependencies] [dev-dependencies]

View File

@ -31,7 +31,7 @@ use codec::UviBytes;
use crate::dht_proto as proto; use crate::dht_proto as proto;
use crate::record::{self, Record}; use crate::record::{self, Record};
use futures::prelude::*; use futures::prelude::*;
use futures_codec::Framed; use asynchronous_codec::Framed;
use libp2p_core::{Multiaddr, PeerId}; use libp2p_core::{Multiaddr, PeerId};
use libp2p_core::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo}; use libp2p_core::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo};
use prost::Message; use prost::Message;

View File

@ -1,3 +1,7 @@
# 0.28.0 [unreleased]
- Update dependencies.
# 0.27.0 [2020-12-17] # 0.27.0 [2020-12-17]
- Update `libp2p-swarm` and `libp2p-core`. - Update `libp2p-swarm` and `libp2p-core`.

View File

@ -1,7 +1,7 @@
[package] [package]
name = "libp2p-mdns" name = "libp2p-mdns"
edition = "2018" edition = "2018"
version = "0.27.0" version = "0.28.0"
description = "Implementation of the libp2p mDNS discovery method" description = "Implementation of the libp2p mDNS discovery method"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
@ -16,8 +16,8 @@ dns-parser = "0.8.0"
futures = "0.3.8" futures = "0.3.8"
if-watch = "0.1.6" if-watch = "0.1.6"
lazy_static = "1.4.0" lazy_static = "1.4.0"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
log = "0.4.11" log = "0.4.11"
rand = "0.7.3" rand = "0.7.3"
smallvec = "1.5.0" smallvec = "1.5.0"

View File

@ -1,3 +1,7 @@
# 0.29.0 [unreleased]
- Update dependencies.
# 0.28.0 [2020-12-17] # 0.28.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -1,20 +1,20 @@
[package] [package]
name = "libp2p-noise" name = "libp2p-noise"
description = "Cryptographic handshake protocol using the noise framework." description = "Cryptographic handshake protocol using the noise framework."
version = "0.28.0" version = "0.29.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
bytes = "0.5" bytes = "1"
curve25519-dalek = "3.0.0" curve25519-dalek = "3.0.0"
futures = "0.3.1" futures = "0.3.1"
lazy_static = "1.2" lazy_static = "1.2"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4" log = "0.4"
prost = "0.6.1" prost = "0.7"
rand = "0.7.2" rand = "0.7.2"
sha2 = "0.9.1" sha2 = "0.9.1"
static_assertions = "1" static_assertions = "1"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-swarm` and `libp2p-core`. - Update `libp2p-swarm` and `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-ping" name = "libp2p-ping"
edition = "2018" edition = "2018"
description = "Ping protocol for libp2p" description = "Ping protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,8 +11,8 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
log = "0.4.1" log = "0.4.1"
rand = "0.7.2" rand = "0.7.2"
void = "1.0" void = "1.0"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-plaintext" name = "libp2p-plaintext"
edition = "2018" edition = "2018"
description = "Plaintext encryption dummy protocol for libp2p" description = "Plaintext encryption dummy protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -10,13 +10,13 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
bytes = "0.5" bytes = "1"
futures = "0.3.1" futures = "0.3.1"
futures_codec = "0.4.0" asynchronous-codec = "0.5.0"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.8" log = "0.4.8"
prost = "0.6.1" prost = "0.7"
unsigned-varint = { version = "0.5.1", features = ["futures-codec"] } unsigned-varint = { version = "0.6", features = ["asynchronous_codec"] }
void = "1.0.2" void = "1.0.2"
[dev-dependencies] [dev-dependencies]

View File

@ -24,7 +24,7 @@ use crate::structs_proto::Exchange;
use bytes::{Bytes, BytesMut}; use bytes::{Bytes, BytesMut};
use futures::prelude::*; use futures::prelude::*;
use futures_codec::Framed; use asynchronous_codec::Framed;
use libp2p_core::{PublicKey, PeerId}; use libp2p_core::{PublicKey, PeerId};
use log::{debug, trace}; use log::{debug, trace};
use prost::Message; use prost::Message;

View File

@ -1,5 +1,7 @@
# 0.9.0 [unreleased] # 0.9.0 [unreleased]
- Update dependencies.
- Re-export `throttled`-specific response channel. [PR - Re-export `throttled`-specific response channel. [PR
1902](https://github.com/libp2p/rust-libp2p/pull/1902). 1902](https://github.com/libp2p/rust-libp2p/pull/1902).

View File

@ -11,16 +11,16 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
async-trait = "0.1" async-trait = "0.1"
bytes = "0.5.6" bytes = "1"
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
libp2p-swarm = { version = "0.26.0", path = "../../swarm" } libp2p-swarm = { version = "0.27.0", path = "../../swarm" }
log = "0.4.11" log = "0.4.11"
lru = "0.6" lru = "0.6"
minicbor = { version = "0.7", features = ["std", "derive"] } minicbor = { version = "0.7", features = ["std", "derive"] }
rand = "0.7" rand = "0.7"
smallvec = "1.4" smallvec = "1.4"
unsigned-varint = { version = "0.5", features = ["std", "futures"] } unsigned-varint = { version = "0.6", features = ["std", "futures"] }
wasm-timer = "0.2" wasm-timer = "0.2"
[dev-dependencies] [dev-dependencies]

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-secio" name = "libp2p-secio"
edition = "2018" edition = "2018"
description = "Secio encryption protocol for libp2p" description = "Secio encryption protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -19,7 +19,7 @@ ctr = "0.3"
futures = "0.3.1" futures = "0.3.1"
hmac = "0.9.0" hmac = "0.9.0"
lazy_static = "1.2.0" lazy_static = "1.2.0"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.6" log = "0.4.6"
prost = "0.6.1" prost = "0.6.1"
pin-project = "1.0.0" pin-project = "1.0.0"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-swarm" name = "libp2p-swarm"
edition = "2018" edition = "2018"
description = "The libp2p swarm" description = "The libp2p swarm"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
either = "1.6.0" either = "1.6.0"
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../core" } libp2p-core = { version = "0.27.0", path = "../core" }
log = "0.4" log = "0.4"
rand = "0.7" rand = "0.7"
smallvec = "1.0" smallvec = "1.0"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-dns" name = "libp2p-dns"
edition = "2018" edition = "2018"
description = "DNS transport implementation for libp2p" description = "DNS transport implementation for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -10,6 +10,6 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.1" log = "0.4.1"
futures = "0.3.1" futures = "0.3.1"

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `async-io`. - Update `async-io`.

View File

@ -2,7 +2,7 @@
name = "libp2p-tcp" name = "libp2p-tcp"
edition = "2018" edition = "2018"
description = "TCP/IP transport protocol for libp2p" description = "TCP/IP transport protocol for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -15,7 +15,7 @@ futures = "0.3.1"
futures-timer = "3.0" futures-timer = "3.0"
if-addrs = "0.6.4" if-addrs = "0.6.4"
ipnet = "2.0.0" ipnet = "2.0.0"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.1" log = "0.4.1"
socket2 = { version = "0.3.12" } socket2 = { version = "0.3.12" }
tokio = { version = "0.3", default-features = false, features = ["net"], optional = true } tokio = { version = "0.3", default-features = false, features = ["net"], optional = true }

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-uds" name = "libp2p-uds"
edition = "2018" edition = "2018"
description = "Unix domain sockets transport for libp2p" description = "Unix domain sockets transport for libp2p"
version = "0.26.0" version = "0.27.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
[target.'cfg(all(unix, not(target_os = "emscripten")))'.dependencies] [target.'cfg(all(unix, not(target_os = "emscripten")))'.dependencies]
async-std = { version = "1.6.2", optional = true } async-std = { version = "1.6.2", optional = true }
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.1" log = "0.4.1"
futures = "0.3.1" futures = "0.3.1"
tokio = { version = "0.3", default-features = false, features = ["net"], optional = true } tokio = { version = "0.3", default-features = false, features = ["net"], optional = true }

View File

@ -1,3 +1,7 @@
# 0.27.0 [unreleased]
- Update dependencies.
# 0.26.0 [2020-12-17] # 0.26.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -1,6 +1,6 @@
[package] [package]
name = "libp2p-wasm-ext" name = "libp2p-wasm-ext"
version = "0.26.0" version = "0.27.0"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"] authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
edition = "2018" edition = "2018"
description = "Allows passing in an external transport in a WASM environment" description = "Allows passing in an external transport in a WASM environment"
@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies] [dependencies]
futures = "0.3.1" futures = "0.3.1"
js-sys = "0.3.19" js-sys = "0.3.19"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
parity-send-wrapper = "0.1.0" parity-send-wrapper = "0.1.0"
wasm-bindgen = "0.2.42" wasm-bindgen = "0.2.42"
wasm-bindgen-futures = "0.4.4" wasm-bindgen-futures = "0.4.4"

View File

@ -1,3 +1,7 @@
# 0.28.0 [unreleased]
- Update dependencies.
# 0.27.0 [2020-12-17] # 0.27.0 [2020-12-17]
- Update `libp2p-core`. - Update `libp2p-core`.

View File

@ -2,7 +2,7 @@
name = "libp2p-websocket" name = "libp2p-websocket"
edition = "2018" edition = "2018"
description = "WebSocket transport for libp2p" description = "WebSocket transport for libp2p"
version = "0.27.0" version = "0.28.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT" license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p" repository = "https://github.com/libp2p/rust-libp2p"
@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
async-tls = "0.11.0" async-tls = "0.11.0"
either = "1.5.3" either = "1.5.3"
futures = "0.3.1" futures = "0.3.1"
libp2p-core = { version = "0.26.0", path = "../../core" } libp2p-core = { version = "0.27.0", path = "../../core" }
log = "0.4.8" log = "0.4.8"
quicksink = "0.1" quicksink = "0.1"
rustls = "0.19.0" rustls = "0.19.0"