- Add uploadBlob (@21) and downloadBlob (@22) RPCs to Cap'n Proto schema with SHA-256 content addressing and chunked transfer - Server blob handler: 256KB chunks, SHA-256 verification on finalize, .meta JSON sidecar, 50MB size limit, content-addressable storage - Add FileRef (0x08) AppMessage variant with blob_id, filename, file_size, mime_type - /send-file command: read file, compute hash, upload in chunks with progress display, send FileRef via MLS, MIME auto-detection - /download command: fetch blob in chunks with progress, verify hash, save to disk with collision avoidance - 2 new E2E tests: upload/download round-trip with partial reads, hash mismatch rejection (14 E2E tests total) - New error codes: E024-E027 for blob operations
73 lines
1.8 KiB
TOML
73 lines
1.8 KiB
TOML
[package]
|
|
name = "quicproquo-server"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Delivery Service and Authentication Service for quicproquo."
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "qpq-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
quicproquo-core = { path = "../quicproquo-core" }
|
|
quicproquo-proto = { path = "../quicproquo-proto" }
|
|
quicproquo-plugin-api = { path = "../quicproquo-plugin-api" }
|
|
quicproquo-kt = { path = "../quicproquo-kt" }
|
|
|
|
# Dynamic plugin loading
|
|
libloading = "0.8"
|
|
|
|
# Serialisation + RPC
|
|
capnp = { workspace = true }
|
|
capnp-rpc = { workspace = true }
|
|
|
|
# Async
|
|
tokio = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
futures = { workspace = true }
|
|
|
|
# Server utilities
|
|
dashmap = { workspace = true }
|
|
hex = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
quinn = { workspace = true }
|
|
quinn-proto = { workspace = true }
|
|
rustls = { workspace = true }
|
|
rcgen = { workspace = true }
|
|
|
|
# Crypto — OPAQUE PAKE
|
|
opaque-ke = { workspace = true }
|
|
rand = { workspace = true }
|
|
subtle = { workspace = true }
|
|
zeroize = { workspace = true }
|
|
|
|
# Database
|
|
rusqlite = { workspace = true }
|
|
|
|
# Error handling
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
bincode = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# CLI
|
|
clap = { workspace = true }
|
|
toml = { version = "0.8" }
|
|
|
|
# Metrics (Prometheus)
|
|
metrics = "0.22"
|
|
metrics-exporter-prometheus = "0.15"
|
|
|
|
# mDNS service announcement for local mesh / Freifunk node discovery.
|
|
mdns-sd = "0.12"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|