Cargo Features
[dependencies]
lettre = { version = "0.11.2", 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
somewhere in the dependency tree.default-features = false - builder default
-
Enables email-encoding and fastrand, mime and quoted_printable and httpdate
httpdate:
builder
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
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, process and io-util of optional tokio
Affects
transport::sendmail
… - smtp-transport default
-
Enables base64, url, once_cell and socket2, rt, time and net of optional tokio and nom
nom:
smtp-transport
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 ^0.21, rustls-pemfile ^1, and webpki-roots ^0.25
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 ^0.24
- tokio1 tokio1-boring-tls? tokio1-native-tls? tokio1-rustls-tls?
-
Enables async-trait, futures-util and tokio and futures-io
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 ^0.24
- tokio1-boring-tls = boring-tls, tokio1
-
Enables tokio-boring
- dkim
-
Enables base64, ed25519-dalek, and rsa and sha2
sha2:
dkim
Affects
message::dkim
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- tracing implicit feature
-
With std
- serde file-transport-envelope?
- hostname default
-
- native-tls default tokio1-native-tls?
-
Affects
tls::TlsVersion
… - rustls-native-certs implicit feature
-
Enables rustls-native-certs ^0.6.2