-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
82 lines (66 loc) · 2.21 KB
/
Cargo.toml
File metadata and controls
82 lines (66 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "fula-mail"
version = "0.1.0"
edition = "2021"
description = "Fula Mail - Decentralized email gateway with SMTP, IMAP/JMAP support"
authors = ["Functionland"]
license = "MIT"
[dependencies]
# Stalwart SMTP/IMAP/JMAP integration
mail-parser = "0.9"
mail-builder = "0.3"
mail-auth = "0.4"
# Web framework (same as fula-gateway)
axum = { version = "0.8", features = ["macros"] }
axum-server = { version = "0.8", features = ["tls-rustls"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
tower_governor = "0.8"
governor = "0.10"
hyper = { version = "1.5", features = ["full"] }
tokio = { version = "1", features = ["full"] }
tokio-util = "0.7"
# Encryption (fula-client compatible: Ed25519 -> X25519, NaCl box)
crypto_box = { version = "0.9", features = ["seal"] }
curve25519-dalek = "4"
ed25519-dalek = { version = "2", features = ["rand_core"] }
x25519-dalek = { version = "2", features = ["static_secrets"] }
rand = "0.8"
# Hashing (same as fula-gateway)
blake3 = "1.5"
sha2 = "0.10"
# Envelope encryption for secrets at rest (DKIM keys, relay API keys)
aes-gcm = "0.10"
# Database (shared PostgreSQL)
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "chrono", "uuid"] }
# DNS verification
trust-dns-resolver = "0.23"
# DKIM key generation
rsa = { version = "0.9", features = ["pkcs5", "pem"] }
# Environment
dotenvy = "0.15"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTTP client (for pinning service integration)
reqwest = { version = "0.12", features = ["json", "rustls-tls", "multipart"] }
# Auth (JWT - same flow as FxFiles)
jsonwebtoken = "9"
# Embedded SMTP server (inbound)
mailin-embedded = "0.8"
# SMTP client (outbound relay)
lettre = { version = "0.11", default-features = false, features = ["tokio1-rustls-tls", "dkim", "builder", "smtp-transport"] }
# Utilities
base64 = "0.22"
hex = "0.4"
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
thiserror = "2"
anyhow = "1"
clap = { version = "4", features = ["derive"] }
bs58 = "0.5"
[[bin]]
name = "fula-mail"
path = "src/main.rs"