-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
94 lines (70 loc) · 2.56 KB
/
Cargo.toml
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
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "dust-mail"
version = "0.4.3"
edition = "2021"
rust-version = "1.67"
repository = "https://github.com/dust-mail/core"
documentation = "https://docs.dust.email"
license = "MIT"
description = "A multi protocol email client"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# Imap
async-imap = { version = "0.9.4", default-features = false, optional = true }
# Pop
async-pop = { version = "1.1.0", default-features = false, features = [
"sasl",
], optional = true }
async-smtp = { version = "0.9.0", default-features = false, optional = true }
# Autodetect service
autoconfig = { version = "0.4", default-features = false, optional = true }
ms-autodiscover = { version = "0.3", default-features = false, features = [
"pox",
], optional = true }
dns-mail-discover = { version = "0.2.7", default-features = false, optional = true }
# Generic mail utilities
mailparse = "0.14"
email = "0.0.21"
mail-builder = "0.3.1"
maildir = { version = "0.6.4", optional = true }
# Serde
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
# Time
chrono = "0.4"
# Tls
async-native-tls = { version = "0.5.0", default-features = false }
# Async
tokio = { version = "1", features = [
"net",
"macros",
"sync",
"time",
"rt-multi-thread",
], optional = true }
async-std = { version = "1.12.0", features = ["attributes"], optional = true }
async-trait = "0.1.66"
futures = "0.3"
# Sanitizing text
ammonia = "3"
# Logging
log = "0.4"
validator = "0.16.1"
directories = "5.0.1"
mime = "0.3.17"
[dev-dependencies]
env_logger = "0.10.0"
dotenv = "0.15.0"
[features]
default = ["pop", "imap", "smtp", "discover", "runtime-tokio", "serde", "maildir"]
maildir = ["dep:maildir"]
discover = ["autoconfig", "autodiscover", "dep:dns-mail-discover"]
autoconfig = ["dep:autoconfig"]
autodiscover = ["dep:ms-autodiscover"]
smtp = ["dep:async-smtp"]
pop = ["dep:async-pop"]
imap = ["dep:async-imap"]
serde = ["dep:serde"]
json = ["serde", "dep:serde_json"]
runtime-tokio = ["dep:tokio", "async-native-tls/runtime-tokio", "async-imap?/runtime-tokio", "async-smtp?/runtime-tokio", "async-pop?/runtime-tokio", "autoconfig?/runtime-tokio", "ms-autodiscover?/runtime-tokio", "dns-mail-discover?/runtime-tokio"]
runtime-async-std = ["dep:async-std", "async-native-tls/runtime-async-std", "async-imap?/runtime-async-std", "async-smtp?/runtime-async-std", "async-pop?/runtime-async-std", "autoconfig?/runtime-async-std", "ms-autodiscover?/runtime-async-std", "dns-mail-discover?/runtime-async-std"]