33 lines
1.2 KiB
TOML
33 lines
1.2 KiB
TOML
[package]
|
|
name = "tabellarius-relay"
|
|
description = "The relay. Stores exactly docs/PROTOCOL.md section 5. Never depends on the client."
|
|
license = "AGPL-3.0-only"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
tabellarius-protocol = { path = "../protocol" }
|
|
axum = { version = "0.8", default-features = false, features = ["http1", "tokio", "json"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "time", "signal"] }
|
|
# Plain SQLite: the relay holds only ciphertext and hashes; nothing in it is readable (PROTOCOL.md §5).
|
|
rusqlite = { version = "0.41", features = ["bundled"] }
|
|
serde = "1"
|
|
serde_json = "1"
|
|
subtle = "2"
|
|
# The join page's Content-Security-Policy names its inline script and style by SHA-256 (base64).
|
|
sha2 = "0.10"
|
|
base64 = "0.22"
|
|
# The wake (`.agents/features/wake-up.md` §2.2): the relay's only outgoing request. rustls with
|
|
# Mozilla's roots built in; the resolver is the relay's own, which drops every non-global address.
|
|
ureq = { version = "3", default-features = false, features = ["rustls"] }
|
|
|
|
[dev-dependencies]
|
|
getrandom = "0.3"
|
|
http-body-util = "0.1"
|
|
tempfile = "3"
|
|
tower = { version = "0.5", features = ["util"] }
|
|
|
|
[lints]
|
|
workspace = true
|