[package]
edition = "2021"
rust-version = "1.75.0"
name = "dig-dht"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Kademlia DHT with provider records for the DIG Node peer network — maps DIG content (store / capsule / root / resource) to the peer_ids holding it, so a node can locate which peers have the content it wants and fetch it over the L7 peer RPC. peer_id = SHA-256(TLS SPKI DER), XOR-distance k-buckets, iterative find_node/find_providers, TTL'd + republished provider records, riding dig-nat mTLS transport."
readme = "README.md"
keywords = [
"dht",
"kademlia",
"p2p",
"provider",
"dig",
]
categories = ["network-programming"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/DIG-Network/dig-dht"
[lib]
name = "dig_dht"
path = "src/lib.rs"
[[test]]
name = "swarm"
path = "tests/swarm.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.dig-ip]
version = "0.1"
[dependencies.dig-nat]
version = "0.7"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"time",
"sync",
"io-util",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"sync",
"test-util",
]
[profile.release]
overflow-checks = true