Commit
Author: Kevin Schoon [me@kevinschoon.com]
Hash: 22b5f049d2ae2ca5bf7192e5123816fed198e000
Timestamp: Fri, 25 Oct 2024 08:11:07 +0000 (1 month ago)

+24 -10 +/-1 browse
fixup cargo features, patch mail-auth
1diff --git a/maitred/Cargo.toml b/maitred/Cargo.toml
2index 5f06b15..bdfb376 100644
3--- a/maitred/Cargo.toml
4+++ b/maitred/Cargo.toml
5 @@ -5,9 +5,9 @@ edition = "2021"
6
7 [dependencies]
8 async-trait = "0.1.83"
9- base64 = "0.22.1"
10+ base64 = { version = "0.22.1", optional = true }
11 bytes = "1.8.0"
12- crossbeam-deque = "0.8.5"
13+ crossbeam-deque = { version = "0.8.5", optional = true }
14 email_address = "0.2.9"
15 futures = "0.3.31"
16 mail-auth = "0.5.0"
17 @@ -16,15 +16,15 @@ mail-parser = { version = "0.9.4", features = ["serde", "serde_support"] }
18 maildir = "0.6.4"
19 md5 = "0.7.0"
20 proxy-header = "0.1.2"
21- rustls = "0.23.15"
22- rustls-pemfile = "2.2.0"
23+ rustls = { version = "0.23.15", optional = true }
24+ rustls-pemfile = { version = "2.2.0", optional = true }
25 smtp-proto = { version = "0.1.5", features = ["serde", "serde_support"] }
26 stringprep = "0.1.5"
27 thiserror = "1.0.65"
28- tokio = { version = "1.41.0", features = ["full"] }
29- tokio-rustls = "0.26.0"
30- tokio-stream = { version = "0.1.16", features = ["full"] }
31- tokio-util = { version = "0.7.12", features = ["full"] }
32+ tokio = { version = "1.41.0", features = ["full"], optional = true }
33+ tokio-rustls = { version = "0.26.0", optional = true }
34+ tokio-stream = { version = "0.1.16", features = ["full"], optional = true }
35+ tokio-util = { version = "0.7.12", features = ["full"], optional = true }
36 tracing = { version = "0.1.40", features = ["log"] }
37 url = "2.5.2"
38
39 @@ -34,5 +34,19 @@ tracing-subscriber = "0.3.18"
40 [features]
41 default = []
42 full = ["server", "auth"]
43- server = []
44- auth = ["server"]
45+ server = [
46+ "crossbeam-deque",
47+ "rustls",
48+ "rustls-pemfile",
49+ "tokio",
50+ "tokio-rustls",
51+ "tokio-stream",
52+ "tokio-util"
53+ ]
54+ auth = [
55+ "base64",
56+ "server"
57+ ]
58+
59+ [patch.crates-io]
60+ mail-auth = { git = "https://github.com/stalwartlabs/mail-auth.git", branch = "main" }