caelum0x 9429ff20da feat(mail): Scribase Mail Rust platform: sending core, accounts, auth, SMTP submission, Supabase hook, deliverability, TS SDK, docs
Clean-room Rust rewrite (written without reference to useSend source).
Crates: mail-types, mail-core, mail-server, mail-auth, mail-submit,
mail-hooks, mail-deliverability; sdks/ts (@scribase/mail); docs/.
Each verified by running locally (see plans/scribase-mail-rust-2026-11-12.md).
mail-mta, mail-inbound, mail-oci are still in progress and not in this commit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 01:03:09 +03:00

50 lines
1.5 KiB
TOML

[package]
name = "mail-core"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
description = "Scribase Mail domain: Postgres-backed email queue, DKIM signing, DNS verification, SMTP relay transport, suppression list and signed webhooks. Independent implementation, written without reference to useSend source."
[dependencies]
mail-types.workspace = true
async-trait.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "sync"] }
tracing = "0.1"
uuid = { version = "1", features = ["v4", "serde"] }
time = { version = "0.3", features = ["serde", "formatting", "parsing", "macros"] }
sqlx = { version = "0.8", default-features = false, features = [
"runtime-tokio-rustls",
"postgres",
"uuid",
"time",
"json",
"macros",
"derive",
"migrate",
] }
# SMTP smarthost relay (STARTTLS on 587).
lettre = { version = "0.11", default-features = false, features = [
"tokio1-rustls-tls",
"smtp-transport",
] }
# DKIM (RFC 6376, rsa-sha256, relaxed/relaxed) + key generation.
rsa = { version = "0.9", features = ["sha2"] }
sha2 = "0.10"
hmac = "0.12"
rand = "0.8"
base64 = "0.22"
# DNS verification of DKIM/SPF/DMARC/MX records.
hickory-resolver = { version = "0.26", default-features = false, features = ["tokio", "system-config"] }
# Webhook delivery.
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
url = "2"