58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
[package]
|
|
name = "dht-crawler"
|
|
version = "0.0.4"
|
|
edition = "2024"
|
|
authors = ["桥下红药 <1121744186@qq.com>"]
|
|
description = "高性能的 Rust DHT(分布式哈希表)爬虫库,用于爬取 BitTorrent DHT 网络中的种子信息"
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/dht-crawler"
|
|
keywords = ["dht", "bittorrent", "crawler", "p2p", "torrent"]
|
|
categories = ["network-programming", "asynchronous"]
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
name = "dht_crawler"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.35", features = ["rt", "rt-multi-thread", "net", "sync", "time", "macros"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_bencode = "0.2"
|
|
sha1 = "0.10"
|
|
hex = "0.4"
|
|
rand = "0.8"
|
|
log = "0.4"
|
|
thiserror = "1.0"
|
|
socket2 = { version = "0.5", features = ["all"] }
|
|
rbit = "0.2"
|
|
bytes = "1.0"
|
|
bloomfilter = "1.0"
|
|
ahash = "0.8"
|
|
serde_bytes = "0.11.19"
|
|
metrics = { version = "0.24", optional = true }
|
|
|
|
[dev-dependencies]
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "tracing-log"] }
|
|
mimalloc = "0.1"
|
|
|
|
[features]
|
|
default = []
|
|
metrics = ["dep:metrics"]
|
|
mimalloc = []
|
|
|
|
[[example]]
|
|
name = "dht_crawler_example"
|
|
path = "examples/main.rs"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = true
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|