mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 00:41:59 +00:00
*: 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:
@@ -3251,7 +3251,7 @@ impl fmt::Debug for PublishConfig {
|
||||
mod local_test {
|
||||
use super::*;
|
||||
use crate::IdentTopic;
|
||||
use futures_codec::Encoder;
|
||||
use asynchronous_codec::Encoder;
|
||||
use quickcheck::*;
|
||||
use rand::Rng;
|
||||
|
||||
|
@@ -24,7 +24,7 @@ use crate::protocol::{GossipsubCodec, ProtocolConfig};
|
||||
use crate::types::{GossipsubRpc, PeerKind, RawGossipsubMessage};
|
||||
use futures::prelude::*;
|
||||
use futures::StreamExt;
|
||||
use futures_codec::Framed;
|
||||
use asynchronous_codec::Framed;
|
||||
use libp2p_core::upgrade::{InboundUpgrade, NegotiationError, OutboundUpgrade, UpgradeError};
|
||||
use libp2p_swarm::protocols_handler::{
|
||||
KeepAlive, ProtocolsHandler, ProtocolsHandlerEvent, ProtocolsHandlerUpgrErr, SubstreamProtocol,
|
||||
|
@@ -32,7 +32,7 @@ use bytes::Bytes;
|
||||
use bytes::BytesMut;
|
||||
use futures::future;
|
||||
use futures::prelude::*;
|
||||
use futures_codec::{Decoder, Encoder, Framed};
|
||||
use asynchronous_codec::{Decoder, Encoder, Framed};
|
||||
use libp2p_core::{
|
||||
identity::PublicKey, InboundUpgrade, OutboundUpgrade, PeerId, ProtocolName, UpgradeInfo,
|
||||
};
|
||||
|
Reference in New Issue
Block a user