Cargo Features
[dependencies]
lettre = { version = "0.11.19", default-features = false, features = ["builder", "mime03", "file-transport", "file-transport-envelope", "sendmail-transport", "smtp-transport", "pool", "rustls", "aws-lc-rs", "fips", "ring", "webpki-roots", "rustls-tls", "boring-tls", "async-std1", "async-std1-rustls", "async-std1-rustls-tls", "tokio1", "tokio1-native-tls", "tokio1-rustls", "tokio1-rustls-tls", "tokio1-boring-tls", "dkim", "web", "tracing", "hostname", "rustls-platform-verifier", "rustls-native-certs"] }
- default = builder, hostname, native-tls, pool, smtp-transport
-
These default features are set whenever
lettreis added withoutsomewhere in the dependency tree.default-features = false - 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,transport::smtp… - pool default
-
Enables futures-util
- rustls async-std1-rustls? rustls-tls? tokio1-rustls?
-
Enables rustls
Affects
tls::TlsVersion… - aws-lc-rs fips?
-
Enables aws-lc-rs of optional rustls
rustls:
Alias because Cargo features commonly use
- - fips = aws-lc-rs
- ring rustls-tls?
- webpki-roots rustls-tls?
-
Enables webpki-roots
- rustls-tls async-std1-rustls-tls? tokio1-rustls-tls? = ring, rustls, webpki-roots
-
deprecated
- boring-tls tokio1-boring-tls?
-
Enables boring
Affects
tls::TlsVersion… - async-std1 async-std1-rustls?
-
async
Enables async-std, async-trait, futures-io, and futures-util
Affects
executor::AsyncStd1Executor,file::AsyncFileTransport,transport::AsyncTransport,sendmail::AsyncSendmailTransport,stub::AsyncStubTransport… - async-std1-rustls async-std1-rustls-tls? = async-std1, rustls
-
Enables futures-rustls
- async-std1-rustls-tls = async-std1-rustls, rustls-tls
-
deprecated
- tokio1 tokio1-boring-tls? tokio1-native-tls? tokio1-rustls?
-
Enables async-trait, futures-io, futures-util, and tokio
futures-io:
async
Affects
executor::Tokio1Executor,async_net::AsyncTokioStream,file::AsyncFileTransport,transport::AsyncTransport,sendmail::AsyncSendmailTransport,stub::AsyncStubTransport… - tokio1-native-tls = native-tls, tokio1
-
Enables tokio-native-tls
- tokio1-rustls tokio1-rustls-tls? = rustls, tokio1
-
Enables tokio-rustls
- tokio1-rustls-tls = rustls-tls, tokio1-rustls
-
deprecated
- tokio1-boring-tls = boring-tls, tokio1
-
Enables tokio-boring
- dkim
-
Enables base64, ed25519-dalek, rsa, and sha2
Affects
message::dkim… - web
-
wasm support
Enables web-time
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
tracing support
- serde file-transport-envelope?
- hostname default
-
Enables hostname
feature
- native-tls default tokio1-native-tls?
-
Enables native-tls
tls
featureAffects
tls::TlsVersion… - rustls-platform-verifier implicit feature
- rustls-native-certs implicit feature
-
Enables rustls-native-certs
rustls-native-certs:
rustls-native-certs allows rustls to use the platform native certificate store