-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
75 lines (62 loc) · 1.83 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
[package]
name = "mailfred"
authors = ["lemunozm <[email protected]>"]
version = "0.1.1"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
description = "Process emails as an HTTP server"
homepage = "https://github.com/lemunozm/mailfred"
repository = "https://github.com/lemunozm/mailfred"
keywords = ["imap", "smtp", "server", "email", "service"]
categories = ["asynchronous", "email", "web-programming"]
[features]
default = ["smtp", "imap"]
full = ["smtp", "imap", "logger"]
smtp = ["dep:mail-send", "dep:mail-builder", "dep:tokio-rustls"]
imap = ["dep:imap", "dep:mail-parser", "dep:native-tls"]
logger = ["dep:fern", "dep:colored", "dep:chrono"]
[package.metadata.cargo-all-features]
denylist = ["full"] # it's just an alias, we do not want to permute over it
[dependencies]
tokio = { version = "1", features = [
"rt",
"macros",
"sync",
"time",
"rt-multi-thread",
] }
async-trait = "0.1"
log = "0.4"
anyhow = "1"
# smtp
mail-send = { version = "=0.4.0", optional = true }
mail-builder = { version = "0.3", optional = true }
tokio-rustls = { version = "0.24", optional = true }
# imap
imap = { version = "=3.0.0-alpha.10", optional = true }
mail-parser = { version = "0.8", optional = true }
native-tls = { version = "0.2", optional = true }
# logger
fern = { version = "0.6", features = ["colored"], optional = true }
colored = { version = "2.0", optional = true }
chrono = { version = "0.4", optional = true }
[dev-dependencies]
serial_test = "2.0"
doc-comment = "0.3"
csv = "1.2"
[[test]]
name = "integration_transports"
required-features = ["imap", "smtp"]
[[example]]
name = "basic"
required-features = ["imap", "smtp"]
[[example]]
name = "gmail"
required-features = ["imap", "smtp"]
[[example]]
name = "clean_sent_folder"
required-features = ["imap", "smtp"]
[[example]]
name = "router"
required-features = ["imap", "smtp"]