mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 14:21:33 +00:00
protocols/identify: Fix dev deps for example (#2737)
This commit is contained in:
@ -25,12 +25,16 @@ thiserror = "1.0"
|
|||||||
void = "1.0"
|
void = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
async-std = "1.6.2"
|
async-std = { version = "1.6.2", features = ["attributes"] }
|
||||||
env_logger = "0.9"
|
env_logger = "0.9"
|
||||||
libp2p = { path = "../..", default-features = false, features = ["identify", "tcp-async-io"] }
|
libp2p = { path = "../..", default-features = false, features = [
|
||||||
libp2p-mplex = { path = "../../muxers/mplex" }
|
"dns-async-std",
|
||||||
libp2p-noise = { path = "../../transports/noise" }
|
"mplex",
|
||||||
libp2p-tcp = { path = "../../transports/tcp" }
|
"noise",
|
||||||
|
"tcp-async-io",
|
||||||
|
"websocket",
|
||||||
|
"yamux",
|
||||||
|
]}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
prost-build = "0.10"
|
prost-build = "0.10"
|
||||||
|
@ -513,11 +513,11 @@ fn multiaddr_matches_peer_id(addr: &Multiaddr, peer_id: &PeerId) -> bool {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use futures::pin_mut;
|
use futures::pin_mut;
|
||||||
|
use libp2p::mplex::MplexConfig;
|
||||||
|
use libp2p::noise;
|
||||||
|
use libp2p::tcp::TcpConfig;
|
||||||
use libp2p_core::{identity, muxing::StreamMuxerBox, transport, upgrade, PeerId, Transport};
|
use libp2p_core::{identity, muxing::StreamMuxerBox, transport, upgrade, PeerId, Transport};
|
||||||
use libp2p_mplex::MplexConfig;
|
|
||||||
use libp2p_noise as noise;
|
|
||||||
use libp2p_swarm::{Swarm, SwarmEvent};
|
use libp2p_swarm::{Swarm, SwarmEvent};
|
||||||
use libp2p_tcp::TcpConfig;
|
|
||||||
|
|
||||||
fn transport() -> (
|
fn transport() -> (
|
||||||
identity::PublicKey,
|
identity::PublicKey,
|
||||||
|
@ -287,12 +287,12 @@ pub enum UpgradeError {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use futures::channel::oneshot;
|
use futures::channel::oneshot;
|
||||||
|
use libp2p::tcp::TcpConfig;
|
||||||
use libp2p_core::{
|
use libp2p_core::{
|
||||||
identity,
|
identity,
|
||||||
upgrade::{self, apply_inbound, apply_outbound},
|
upgrade::{self, apply_inbound, apply_outbound},
|
||||||
Transport,
|
Transport,
|
||||||
};
|
};
|
||||||
use libp2p_tcp::TcpConfig;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn correct_transfer() {
|
fn correct_transfer() {
|
||||||
|
Reference in New Issue
Block a user