rift-dht
Part of the riftd project — serverless P2P voice + text chat over UDP.
What's in this crate?
rift-dht enables wide-area peer discovery without central servers:
- Kademlia DHT — Built on libp2p's battle-tested implementation
- Peer Announcement — Publish your presence to the network
- Peer Lookup — Find peers by channel or peer ID
- Bootstrap Nodes — Connect to the network via known entry points
- Automatic Routing — Efficient peer routing tables
Usage
use DhtNode;
let dht = new.await?;
// Announce presence
dht.announce.await?;
// Find peers in a channel
let peers = dht.find_peers.await?;
Related Crates
| Crate | Description |
|---|---|
| rift-discovery | Combined mDNS + DHT discovery |
| rift-mesh | Mesh networking layer |
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.