Registry / networking / libp2p-kad

libp2p-kad

JSON →
library0.48.0rscratesunverified

Kademlia distributed hash table protocol implementation for libp2p.

# Cargo.toml [dependencies] libp2p-kad = "0.48.0"
INSTALL
IMPORT
SIG · LIBP2P-KAD
L
libp2p-kad
networkingrustv0.48.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.

Kademlia
use libp2p_kad::Kademlia;

Create a new Kademlia instance with a generated keypair.

use libp2p_kad::Kademlia; use libp2p::identity::Keypair; let keypair = Keypair::generate_ed25519(); let mut kad = Kademlia::new(keypair.public().to_peer_id(), std::iter::empty());
Debug
Known issues
gotchaRequires an async runtime (e.g., Tokio) to function.
fix
Add tokio or another async runtime as a dependency and use #[tokio::main].
affects: >=0.0.0
Upgrade
Version history
0.48.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
libp2p-kad — cargo add libp2p-kad · libregistry