Files
kindexr/Cargo.toml
T
enki 1c8088c138 fix: NIP compliance audit
NIP-35:
- Accept 64-char SHA256 info hashes (BitTorrent v2) in addition to 40-char SHA1 (v1)
- Parse `size` tag as explicit total size; file-size sum is now a fallback only
- Parse URL hint from third element of `x` tag as blossom_url fallback
- Parse `magnet` tag on ingest and extract trackers from it
- Emit `magnet` tag in published NIP-35 events

NIP-56:
- Handle `e` tags in kind 1984 reports: look up the torrent event's
  publisher and penalise them the same as a direct `p` tag report
2026-05-17 20:25:52 -07:00

64 lines
1.4 KiB
TOML

[package]
name = "kindexr"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "kindexr"
path = "src/main.rs"
[[bin]]
name = "kindexr-cli"
path = "src/bin/kindexr-cli.rs"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# HTTP
axum = { version = "0.8", features = ["json", "macros"] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6", features = ["trace"] }
# Nostr
nostr-sdk = "0.44"
nostr = "0.44"
negentropy = "0.5"
# Database
sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio", "macros", "chrono"] }
# sqlite feature bundles SQLite by default; sqlite-unbundled uses system lib
# Config + CLI
figment = { version = "0.10", features = ["yaml", "env"] }
clap = { version = "4", features = ["derive"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Torznab XML
quick-xml = { version = "0.40", features = ["serialize"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Torrent file parsing (Phase 4, listed now)
lava_torrent = "0.11"
# HTTP client (TMDB enrichment, Phase 2)
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
# Error handling
anyhow = "1"
thiserror = "2"
# Utilities
hex = "0.4"
url = "2"
regex = "1"
chrono = { version = "0.4", features = ["serde"] }
rand = "0.8"
sha2 = "0.10"
base64 = "0.22"
urlencoding = "2"