[package] name = "lettre" version = "0.10.0-alpha.2" # remember to update html_root_url and README.md description = "Email client" readme = "README.md" homepage = "https://lettre.rs" repository = "https://github.com/lettre/lettre" license = "MIT" authors = ["Alexis Mousset ", "Paolo Barbolini "] 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] async-attributes = { version = "1.1", optional = true } async-std = { version = "1.5", optional = true, features = ["unstable"] } async-trait = { version = "0.1", optional = true } 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.14", optional = true } futures-io = { version = "0.3", optional = true } futures-util = { version = "0.3", features = ["io"], optional = true } base64 = { version = "0.12", optional = true } hostname = { version = "0.3", optional = true } hyperx = { version = "1", optional = true, features = ["headers"] } idna = "0.2" tracing = { version = "0.1.16", default-features = false, features = ["std"], optional = true } mime = { version = "0.3", optional = true } native-tls = { version = "0.2", optional = true } nom = { version = "5", optional = true } once_cell = "1" quoted_printable = { version = "0.4", optional = true } r2d2 = { version = "0.8", optional = true } rand = { version = "0.7", optional = true } regex = "1" rustls = { version = "0.18", optional = true } serde = { version = "1", optional = true, features = ["derive"] } serde_json = { version = "1", optional = true } uuid = { version = "0.8", features = ["v4"] } webpki = { version = "0.21", optional = true } webpki-roots = { version = "0.20", 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"] } [[bench]] harness = false name = "transport_smtp" [features] async-std1 = ["async-std", "async-trait", "async-attributes"] 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"] builder = ["mime", "base64", "hyperx", "rand", "quoted_printable"] default = ["file-transport", "smtp-transport", "native-tls", "hostname", "r2d2", "sendmail-transport", "builder"] file-transport = ["serde", "serde_json"] # native-tls rustls-tls = ["webpki", "webpki-roots", "rustls"] sendmail-transport = [] smtp-transport = ["base64", "nom"] [package.metadata.docs.rs] all-features = true [[example]] name = "smtp" required-features = ["smtp-transport"] [[example]] name = "smtp_tls" required-features = ["smtp-transport", "native-tls"] [[example]] name = "smtp_starttls" required-features = ["smtp-transport", "native-tls"] [[example]] name = "tokio02_smtp_tls" required-features = ["smtp-transport", "tokio02", "tokio02-native-tls"] [[example]] name = "tokio02_smtp_starttls" required-features = ["smtp-transport", "tokio02", "tokio02-native-tls"]