Registry / networking / libp2p-ping

libp2p-ping

JSON →
library0.47.0rscratesunverified

Ping protocol for libp2p.

# Cargo.toml [dependencies] libp2p-ping = "0.47.0"
INSTALL
IMPORT
SIG · LIBP2P-PING
L
libp2p-ping
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_ping::Behaviour;

Create a ping behaviour for libp2p.

use libp2p_ping::Behaviour; fn main() { let _behaviour = Behaviour::new(libp2p::identity::Keypair::generate_ed25519()); println!("Ping behaviour created"); }
Debug
Known issues
gotchaRequires libp2p core and an async runtime.
fix
Add libp2p and tokio dependencies.
affects: >=0.1.0
Upgrade
Version history
0.47.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
libp2p-ping — cargo add libp2p-ping · libregistry