[dependencies.ahash]
version = "0.8"
[dependencies.bloomfilter]
version = "1.0"
[dependencies.bytes]
version = "1.0"
[dependencies.hex]
version = "0.4"
[dependencies.log]
version = "0.4"
[dependencies.metrics]
optional = true
version = "0.24"
[dependencies.rand]
version = "0.8"
[dependencies.rbit]
version = "0.2"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_bencode]
version = "0.2"
[dependencies.serde_bytes]
version = "0.11.19"
[dependencies.sha1]
version = "0.10"
[dependencies.socket2]
features = ["all"]
version = "0.5"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
features = ["rt", "rt-multi-thread", "net", "sync", "time", "macros"]
version = "1.35"
[dependencies.tokio-util]
version = "0.7"
[dev-dependencies.metrics-exporter-prometheus]
default-features = false
features = ["http-listener"]
version = "0.18"
[dev-dependencies.mimalloc]
version = "0.1"
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
features = ["env-filter", "fmt", "tracing-log"]
version = "0.3"
[[example]]
name = "dht_crawler_example"
path = "examples/main.rs"
[features]
default = []
metrics = ["dep:metrics"]
mimalloc = []
[lib]
name = "dht_crawler"
path = "src/lib.rs"
[package]
authors = ["桥下红药 <1121744186@qq.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "asynchronous"]
description = "高性能的 Rust DHT (Distributed Hash Table) 爬虫库 | A high-performance Rust DHT crawler library for fetching torrent information from the BitTorrent DHT network"
documentation = "https://docs.rs/dht-crawler"
edition = "2024"
keywords = ["dht", "bittorrent", "crawler", "p2p", "torrent"]
license = "MIT"
name = "dht-crawler"
readme = "README.md"
repository = "https://github.com/0xddy/dht-crawler"
version = "0.0.6"
[profile.dev]
debug = 2
opt-level = 0
[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 3
panic = "abort"
strip = true