Registry / networking / libp2p-identify

libp2p-identify

JSON →
library0.47.0rscratesunverified

Implements the libp2p identify protocol for exchanging peer identity and capabilities.

# Cargo.toml [dependencies] libp2p-identify = "0.47.0"
INSTALL
IMPORT
SIG · LIBP2P-IDENTIFY
L
libp2p-identify
networkingrustv0.47.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Behaviour
use libp2p_identify::Behaviour;

Creates a new identify behaviour with a protocol version string.

use libp2p_identify::Behaviour; let mut behaviour = Behaviour::new("/ipfs/id/1.0.0".parse().unwrap());
Debug
Known issues
gotchaRequires an active libp2p Swarm to function; will panic if used without a transport.
fix
Ensure you have a Swarm built with a transport (e.g., TCP) before adding this behaviour.
affects: >=0.40.0
Upgrade
Version history
0.47.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
libp2p-identify — cargo add libp2p-identify · libregistry