Cargo Features

[dependencies]
lettre = { version = "0.11.7", default-features = false, features = ["builder", "mime03", "file-transport", "file-transport-envelope", "sendmail-transport", "smtp-transport", "pool", "rustls-tls", "boring-tls", "async-std1", "async-std1-rustls-tls", "tokio1", "tokio1-native-tls", "tokio1-rustls-tls", "tokio1-boring-tls", "dkim", "tracing", "hostname", "rustls-native-certs"] }
default = builder, hostname, native-tls, pool, smtp-transport

These default features are set whenever lettre is added without default-features = false somewhere in the dependency tree.

builder default

Enables email-encoding, fastrand, httpdate, mime, and quoted_printable

Affects lettre::message, transport::Transport.send, transport::AsyncTransport.send

mime03

Enables mime

file-transport file-transport-envelope?

transports

Enables fs and io-util of optional tokio and uuid

file transport

Affects executor::Executor.fs_write, transport::file

file-transport-envelope = file-transport, serde

Enables serde_json

Affects executor::Executor.fs_read

sendmail-transport

Enables unstable of optional async-std, io-util and process of optional tokio

Affects transport::sendmail

smtp-transport default

Enables url, base64, nom, percent-encoding, and socket2, net, rt and time of optional tokio

Affects executor::Executor.spawn, executor::Executor.sleep, executor::Executor.connect, executor::SpawnHandle, transport::smtp

pool default

Enables futures-util

rustls-tls async-std1-rustls-tls? tokio1-rustls-tls?

Enables rustls, rustls-pemfile, and webpki-roots

Affects tls::TlsVersion

boring-tls tokio1-boring-tls?

Enables boring

Affects tls::TlsVersion

async-std1 async-std1-rustls-tls?

async

Enables async-std, async-trait, futures-io, and futures-util

Affects executor::AsyncStd1Executor, file::AsyncFileTransport, transport::AsyncTransport, sendmail::AsyncSendmailTransport, pool::async_impl, stub::AsyncStubTransport

async-std1-rustls-tls = async-std1, rustls-tls

Enables futures-rustls

tokio1 tokio1-boring-tls? tokio1-native-tls? tokio1-rustls-tls?

Enables async-trait, futures-io, futures-util, and tokio

futures-io:

async

Affects executor::Tokio1Executor, async_net::AsyncTokioStream, file::AsyncFileTransport, transport::AsyncTransport, sendmail::AsyncSendmailTransport, pool::async_impl, stub::AsyncStubTransport

tokio1-native-tls = native-tls, tokio1

Enables tokio-native-tls

tokio1-rustls-tls = rustls-tls, tokio1

Enables tokio-rustls

tokio1-boring-tls = boring-tls, tokio1

Enables tokio-boring

dkim

Enables base64, ed25519-dalek, rsa, and sha2

Affects message::dkim

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tracing implicit feature

Enables tracing

feature

serde file-transport-envelope?
hostname default

Enables hostname

feature

native-tls default tokio1-native-tls?

Enables native-tls

tls
feature

Affects tls::TlsVersion

rustls-native-certs implicit feature

Enables rustls-native-certs

rustls-native-certs:

rustls-native-certs allows rustls to use the platform native certificate store