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