mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 08:11:39 +00:00
Add a custom derive for NetworkBehaviour (#619)
* Add ProtocolsHandlerSelect * Add a custom derive for NetworkBehaviour * Remove 2018 edition * More work * Update the tests and work * Allow ignored fields * More fixes * Give access to everything in the poll method
This commit is contained in:
@ -137,6 +137,7 @@ pub extern crate multihash;
|
||||
pub extern crate tokio_io;
|
||||
pub extern crate tokio_codec;
|
||||
|
||||
extern crate libp2p_core_derive;
|
||||
extern crate tokio_executor;
|
||||
|
||||
pub extern crate libp2p_core as core;
|
||||
@ -163,6 +164,7 @@ mod transport_ext;
|
||||
|
||||
pub mod simple;
|
||||
|
||||
pub use libp2p_core_derive::NetworkBehaviour;
|
||||
pub use self::core::{Transport, ConnectionUpgrade, PeerId};
|
||||
pub use self::multiaddr::Multiaddr;
|
||||
pub use self::simple::SimpleProtocol;
|
||||
|
Reference in New Issue
Block a user