156 lines
5.5 KiB
TOML
156 lines
5.5 KiB
TOML
[package]
|
|
name = "lettre"
|
|
# remember to update html_root_url and README.md (Cargo.toml example and deps.rs badge)
|
|
version = "0.10.0-beta.2"
|
|
description = "Email client"
|
|
readme = "README.md"
|
|
homepage = "https://lettre.rs"
|
|
repository = "https://github.com/lettre/lettre"
|
|
license = "MIT"
|
|
authors = ["Alexis Mousset <contact@amousset.me>", "Paolo Barbolini <paolo@paolo565.org>"]
|
|
categories = ["email", "network-programming"]
|
|
keywords = ["email", "smtp", "mailer", "message", "sendmail"]
|
|
edition = "2018"
|
|
|
|
[badges]
|
|
is-it-maintained-issue-resolution = { repository = "lettre/lettre" }
|
|
is-it-maintained-open-issues = { repository = "lettre/lettre" }
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[dependencies]
|
|
idna = "0.2"
|
|
tracing = { version = "0.1.16", default-features = false, features = ["std"], optional = true } # feature
|
|
|
|
# builder
|
|
hyperx = { version = "1", optional = true, features = ["headers"] }
|
|
mime = { version = "0.3.4", optional = true }
|
|
uuid = { version = "0.8", features = ["v4"] }
|
|
rand = { version = "0.8", optional = true }
|
|
quoted_printable = { version = "0.4", optional = true }
|
|
base64 = { version = "0.13", optional = true }
|
|
once_cell = "1"
|
|
regex = { version = "1", default-features = false, features = ["std", "unicode-case"] }
|
|
|
|
# file transport
|
|
serde = { version = "1", optional = true, features = ["derive"] }
|
|
serde_json = { version = "1", optional = true }
|
|
|
|
# smtp
|
|
nom = { version = "6", default-features = false, features = ["alloc"], optional = true }
|
|
r2d2 = { version = "0.8", optional = true } # feature
|
|
hostname = { version = "0.3", optional = true } # feature
|
|
|
|
## tls
|
|
native-tls = { version = "0.2", optional = true } # feature
|
|
rustls = { version = "0.19", features = ["dangerous_configuration"], optional = true }
|
|
webpki = { version = "0.21", optional = true }
|
|
webpki-roots = { version = "0.21", optional = true }
|
|
|
|
# async
|
|
futures-io = { version = "0.3.7", optional = true }
|
|
futures-util = { version = "0.3.7", default-features = false, features = ["io"], optional = true }
|
|
async-trait = { version = "0.1", optional = true }
|
|
|
|
## async-std
|
|
async-std = { version = "1.8", optional = true, features = ["unstable"] }
|
|
#async-native-tls = { version = "0.3.3", optional = true }
|
|
async-rustls = { version = "0.2", optional = true }
|
|
|
|
## tokio
|
|
tokio02_crate = { package = "tokio", version = "0.2.7", features = ["fs", "process", "tcp", "dns", "io-util"], optional = true }
|
|
tokio02_native_tls_crate = { package = "tokio-native-tls", version = "0.1", optional = true }
|
|
tokio02_rustls = { package = "tokio-rustls", version = "0.15", optional = true }
|
|
tokio1_crate = { package = "tokio", version = "1", features = ["fs", "process", "net", "io-util"], optional = true }
|
|
tokio1_native_tls_crate = { package = "tokio-native-tls", version = "0.3", optional = true }
|
|
tokio1_rustls = { package = "tokio-rustls", version = "0.22", optional = true }
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.3"
|
|
tracing-subscriber = "0.2.10"
|
|
glob = "0.3"
|
|
walkdir = "2"
|
|
tokio02_crate = { package = "tokio", version = "0.2.7", features = ["macros", "rt-threaded"] }
|
|
tokio1_crate = { package = "tokio", version = "1", features = ["macros", "rt-multi-thread"] }
|
|
async-std = { version = "1.8", features = ["attributes"] }
|
|
serde_json = "1"
|
|
maud = "0.22.1"
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "transport_smtp"
|
|
|
|
[features]
|
|
default = ["smtp-transport", "native-tls", "hostname", "r2d2", "builder"]
|
|
builder = ["mime", "base64", "hyperx", "rand", "quoted_printable"]
|
|
|
|
# transports
|
|
file-transport = []
|
|
file-transport-envelope = ["serde", "serde_json", "file-transport"]
|
|
sendmail-transport = []
|
|
smtp-transport = ["base64", "nom"]
|
|
|
|
rustls-tls = ["webpki", "webpki-roots", "rustls"]
|
|
|
|
# async
|
|
async-std1 = ["async-std", "async-trait", "futures-io", "futures-util"]
|
|
#async-std1-native-tls = ["async-std1", "native-tls", "async-native-tls"]
|
|
async-std1-rustls-tls = ["async-std1", "rustls-tls", "async-rustls"]
|
|
tokio02 = ["tokio02_crate", "async-trait", "futures-io", "futures-util"]
|
|
tokio02-native-tls = ["tokio02", "native-tls", "tokio02_native_tls_crate"]
|
|
tokio02-rustls-tls = ["tokio02", "rustls-tls", "tokio02_rustls"]
|
|
tokio1 = ["tokio1_crate", "async-trait", "futures-io", "futures-util"]
|
|
tokio1-native-tls = ["tokio1", "native-tls", "tokio1_native_tls_crate"]
|
|
tokio1-rustls-tls = ["tokio1", "rustls-tls", "tokio1_rustls"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[[example]]
|
|
name = "basic_html"
|
|
required-features = ["file-transport", "builder"]
|
|
|
|
[[example]]
|
|
name = "maud_html"
|
|
required-features = ["file-transport", "builder"]
|
|
|
|
[[example]]
|
|
name = "smtp"
|
|
required-features = ["smtp-transport", "builder"]
|
|
|
|
[[example]]
|
|
name = "smtp_tls"
|
|
required-features = ["smtp-transport", "native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "smtp_starttls"
|
|
required-features = ["smtp-transport", "native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "smtp_selfsigned"
|
|
required-features = ["smtp-transport", "native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "tokio02_smtp_tls"
|
|
required-features = ["smtp-transport", "tokio02", "tokio02-native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "tokio02_smtp_starttls"
|
|
required-features = ["smtp-transport", "tokio02", "tokio02-native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "tokio1_smtp_tls"
|
|
required-features = ["smtp-transport", "tokio1", "tokio1-native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "tokio1_smtp_starttls"
|
|
required-features = ["smtp-transport", "tokio1", "tokio1-native-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "asyncstd1_smtp_tls"
|
|
required-features = ["smtp-transport", "async-std1", "async-std1-rustls-tls", "builder"]
|
|
|
|
[[example]]
|
|
name = "asyncstd1_smtp_starttls"
|
|
required-features = ["smtp-transport", "async-std1", "async-std1-rustls-tls", "builder"]
|