Expand description
Re-exports
pub use bytes;pub use futures;pub use libp2p_identity as identity;
Modules
- A libp2p module for managing allow and blocks lists to peers.
- autonat
autonatImplementation of the AutoNAT protocol. - Transports, upgrades, multiplexing and node handling of libp2p.
- dcutr
dcutrImplementation of the libp2p Direct Connection Upgrade through Relay specification. - deflate
deflateand non-WebAssembly - dns
dns - floodsub
floodsubImplementation of the floodsub protocol. - gossipsub
gossipsuband non-target_os="unknown"Implementation of the Gossipsub protocol. - identify
identifyImplementation of the Identify protocol. - kad
kadImplementation of the libp2p-specific Kademlia protocol. - mdns
mdnsImplementation of the libp2p-specific mDNS protocol. - metrics
metricsAuxiliary crate recording protocol and Swarm events and exposing them as metrics in the OpenMetrics format. - Multihash implementation.
- noise
noiseNoise protocol framework support for libp2p. - perf
perfImplementation of the libp2p perf protocol. - ping
pingThis module implements the/ipfs/ping/1.0.0protocol. - plaintext
plaintextImplementation of the plaintext protocol. - pnet
pnetImplementation of the pnet protocol. - relay
relayImplementation of libp2p circuit relay protocol. - rendezvous
rendezvousImplementation of the Rendezvous protocol. - request_response
request-responseGeneric request/response protocols. - High-level network manager.
- tcp
tcpImplementation of the libp2plibp2p_core::Transporttrait for TCP/IP. - tls
tlsTLS configuration based on libp2p TLS specs. - Rust-libp2p Tutorials to get started with.
- uds
uds - wasm_ext
wasm-extImplementation of the libp2pTransporttrait for external transports. - websocket
websocketand non-WebAssemblyImplementation of the libp2pTransporttrait for Websockets. - yamux
yamuxImplementation of the Yamux multiplexing protocol for libp2p.
Macros
- Easy way for a user to create a
Multiaddr.
Structs
- Representation of a Multiaddr.
- Identifier of a peer of the network.
- Contains the state of the network, plus the way it should behave.
Enums
Traits
- Possible upgrade on an inbound connection or substream.
- Extension trait for
InboundUpgrade. Automatically implemented on all types that implementInboundUpgrade. - Possible upgrade on an outbound connection or substream.
- Extention trait for
OutboundUpgrade. Automatically implemented on all types that implementOutboundUpgrade. - A transport provides connection-oriented communication between two peers through ordered streams of data (i.e. connections).
- Trait automatically implemented on all objects that implement
Transport. Provides some additional utilities.
Functions
- development_transportNon-WebAssembly and (
tcp-async-ioanddns-async-std, ortcpanddnsandasync-std) andwebsocketandnoiseandmplexandyamuxBuilds aTransportbased on TCP/IP that supports the most commonly-used features of libp2p: - tokio_development_transportNon-WebAssembly and (
tcp-tokioanddns-tokio, ortcpanddnsandtokio) andwebsocketandnoiseandmplexandyamuxBuilds aTransportbased on TCP/IP that supports the most commonly-used features of libp2p: