Files
dht/dht-search/Cargo.toml
T

51 lines
1.4 KiB
TOML

# 定义 DHT 元数据搜索应用的独立依赖和构建入口
[package]
name = "dht-search"
version = "0.1.0"
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
publish = false
[features]
default = ["rocksdb-storage"]
rocksdb-storage = ["dep:rocksdb"]
[dependencies]
axum = "0.8.9"
blake3 = "1.8.5"
clap = { version = "4.5", features = ["derive"] }
dht-crawler = { path = "../dht-crawler", features = ["metrics"] }
dunce = "1.0"
hex = "0.4"
fs2 = "0.4"
rocksdb = { version = "0.24.0", default-features = false, features = ["bindgen-runtime", "lz4"], optional = true }
rmp-serde = "1.3"
regex = "1.12"
serde.workspace = true
serde_json = "1.0"
tantivy = "0.26.1"
thiserror.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
tokio-util.workspace = true
toml = "0.9"
tracing.workspace = true
tracing-appender = "0.2"
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
tower-http = { version = "0.6", features = ["fs"] }
unicode-normalization = "0.1"
[dev-dependencies]
tempfile = "3.27"
tower = { version = "0.5", features = ["util"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61.2", features = ["Win32_System_ProcessStatus", "Win32_System_Threading"] }
[[bin]]
name = "dht-benchmark"
path = "src/bin/dht-benchmark.rs"
required-features = ["rocksdb-storage"]