Release account editing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
2.2 KiB
TOML
61 lines
2.2 KiB
TOML
[package]
|
|
name = "tern-server"
|
|
version = "0.8.5"
|
|
edition = "2021"
|
|
description = "Tern sync server — the only component that speaks IMAP/SMTP"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
axum = { version = "0.7", features = ["macros", "ws"] }
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6", features = ["trace", "cors"] }
|
|
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "chrono", "uuid", "migrate"] }
|
|
|
|
async-imap = { version = "0.11", default-features = false, features = ["runtime-tokio"] }
|
|
async-channel = "2" # same major as async-imap uses, for its unsolicited-response channel
|
|
async-native-tls = { version = "0.6", default-features = false, features = ["runtime-tokio"] }
|
|
mail-parser = "0.11"
|
|
mail-send = "0.4"
|
|
# mail-send trusts only its compiled-in webpki-roots; these let SMTP use the
|
|
# OS trust store instead, matching IMAP (native-tls) so a mail server with an
|
|
# internal-CA certificate works for both. default-features = false matters:
|
|
# rustls' defaults pull in aws-lc-rs, which needs cmake/clang to build.
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
|
tokio-rustls = { version = "0.26", default-features = false }
|
|
rustls-native-certs = "0.8"
|
|
regex = "1"
|
|
# Web Push (RFC 8291 encryption, RFC 8292 VAPID) for UnifiedPush — pure
|
|
# RustCrypto, no OpenSSL.
|
|
p256 = { version = "0.13", features = ["ecdh", "ecdsa"] }
|
|
hkdf = "0.12"
|
|
aes-gcm = "0.10"
|
|
# Push delivery. rustls-tls-native-roots selects ring (like rustls above),
|
|
# not aws-lc, and trusts the OS store.
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots"] }
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
argon2 = "0.5"
|
|
rand = "0.8"
|
|
chacha20poly1305 = "0.10"
|
|
base64 = "0.22"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
dotenvy = "0.15"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
futures = "0.3"
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4"
|
|
# Same version mail-send uses, so tests can construct its reply type.
|
|
smtp-proto = "0.1"
|