mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 17:51:35 +00:00
Update the PeerId import paths (#217)
This commit is contained in:
@ -9,7 +9,6 @@ byteorder = "1.2.1"
|
||||
bytes = "0.4"
|
||||
fnv = "1.0"
|
||||
futures = "0.1"
|
||||
libp2p-peerstore = { path = "../peerstore" }
|
||||
libp2p-core = { path = "../core" }
|
||||
log = "0.4.1"
|
||||
multiaddr = "0.3"
|
||||
|
@ -23,7 +23,6 @@ extern crate byteorder;
|
||||
extern crate bytes;
|
||||
extern crate fnv;
|
||||
extern crate futures;
|
||||
extern crate libp2p_peerstore;
|
||||
extern crate libp2p_core;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
@ -44,8 +43,7 @@ use bytes::{Bytes, BytesMut};
|
||||
use fnv::{FnvHashMap, FnvHashSet, FnvHasher};
|
||||
use futures::sync::mpsc;
|
||||
use futures::{future, Future, Poll, Sink, Stream};
|
||||
use libp2p_peerstore::PeerId;
|
||||
use libp2p_core::{ConnectionUpgrade, Endpoint};
|
||||
use libp2p_core::{ConnectionUpgrade, Endpoint, PeerId};
|
||||
use log::Level;
|
||||
use multiaddr::{AddrComponent, Multiaddr};
|
||||
use parking_lot::{Mutex, RwLock};
|
||||
|
@ -21,7 +21,7 @@
|
||||
extern crate libp2p;
|
||||
extern crate rand;
|
||||
|
||||
use libp2p::peerstore::PeerId;
|
||||
use libp2p::PeerId;
|
||||
|
||||
fn main() {
|
||||
let pid = {
|
||||
|
@ -44,9 +44,8 @@ pub extern crate libp2p_websocket as websocket;
|
||||
|
||||
pub mod simple;
|
||||
|
||||
pub use self::core::{Transport, ConnectionUpgrade, swarm};
|
||||
pub use self::core::{Transport, ConnectionUpgrade, PeerId, swarm};
|
||||
pub use self::multiaddr::Multiaddr;
|
||||
pub use self::peerstore::PeerId;
|
||||
pub use self::simple::SimpleProtocol;
|
||||
|
||||
/// Implementation of `Transport` that supports the most common protocols.
|
||||
|
@ -77,6 +77,7 @@ extern crate serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
// TODO: remove
|
||||
pub use self::libp2p_core::PeerId;
|
||||
pub use self::peerstore::{PeerAccess, Peerstore};
|
||||
|
||||
|
Reference in New Issue
Block a user