lettre v0.10.1 Release Notes
Release Date: 2022-07-20 // over 2 years agoPrevious changes from v0.10.0
-
โฌ๏ธ Upgrade notes
Several breaking changes were made between 0.9 and 0.10, but changes should be straightforward:
- MSRV is now 1.56.0
- ๐ The
lettre_email
crate has been merged intolettre
. To migrate, replacelettre_email
withlettre::message
and make sure to enable thebuilder
feature (it's enabled by default). - ๐
SendableEmail
has been renamed toEmail
andEmailBuilder::build()
produces it directly. To migrate, renameSendableEmail
toEmail
. - The
serde-impls
feature has been renamed toserde
. To migrate, rename the feature.
๐ Features
- โ Add
tokio
1 support - โ Add
rustls
support - โ Add
async-std
support. NOTE: native-tls isn't supported when using async-std for the smtp transport. - ๐ Allow enabling multiple SMTP authentication mechanisms
- ๐ Allow providing a custom message id
- ๐ Allow sending raw emails
๐ฅ Breaking Changes
- ๐ Merge
lettre_email
intolettre
- ๐ Merge
Email
andSendableEmail
intolettre::message::Email
- ๐ SmtpTransport is now an high level SMTP client. It provides connection pooling and shortcuts for building clients using commonly desired values
- ๐จ Refactor
TlsParameters
implementation to not expose the internal TLS library FileTransport
writes emails into.eml
instead of.json
- ๐ When the hostname feature is disabled or hostname cannot be fetched,
127.0.0.1
is used instead oflocalhost
as EHLO parameter (for better RFC compliance and mail server compatibility) - 0๏ธโฃ The
sendmail
andfile
transports aren't enabled by default anymore. - ๐ The
new
method ofClientId
is deprecated - ๐ Rename
serde-impls
feature toserde
- 0๏ธโฃ The
SendmailTransport
now uses thesendmail
command in currentPATH
by default instead of/usr/bin/sendmail
.
๐ Bug Fixes
- ๐ Fix argument injection in
SendmailTransport
(see RUSTSEC-2020-0069) - Correctly encode header values containing non-ASCII characters
- โฑ Timeout bug causing infinite hang
- ๐ Fix doc tests in website
- ๐ Fix docs for
domain
field
Misc
- ๐ Improve documentation, examples and tests
- Replace
line-wrap
,email
,bufstream
with our own implementations - โ Remove
bytes
- โ Remove
time
- โ Remove
fast_chemail
- โก๏ธ Update
base64
to 0.13 - โก๏ธ Update
hostname
to 0.3 - โก๏ธ Update to
nom
6 - ๐ฒ Replace
log
withtracing
- ๐ท Move CI to Github Actions
- ๐ Use criterion for benchmarks