Paolo Barbolini
697da9f7db
Tokio 0.3 support ( #485 )
...
* Tokio 0.3 support
* Tokio 0.3 TLS support
* Tokio 0.3 sendmail transport
* Tokio 0.3 file transport
* Forgotten re-exports
* Tokio 0.3 examples
* fix tokio 0.2 file-transport
* It works
2020-10-19 10:07:36 +02:00
Paolo Barbolini
1ea562b15a
Stop exposing internal encoder implementation
2020-10-13 23:52:45 +02:00
Paolo Barbolini
b43c69af47
Allow changing defaults for the connection pool configuration
2020-10-13 09:33:00 +02:00
RotationMatrix
449f317246
Add doc_cfg attributes ( #483 )
...
* docs(Cargo.toml): Add `cfg(docsrs)` to `rustdoc` args
* docs(all): Enable doc_cfg crate feature
* docs(transport): Add doc_cfg to Transport traits
* docs(all): Add doc_cfg to public modules
* docs(transport-async): Add doc_cfg to Tokio02Connector
* docs(transport-smtp): Add doc_cfg to Smtp Error
* docs(transport-smtp): Add doc_cfg to TlsParameters
2020-10-13 09:18:41 +02:00
Paolo Barbolini
17d644181a
Fix building with no default features
2020-10-13 09:10:46 +02:00
Paolo Barbolini
583df6af18
Fix Rust 2018 Idioms
2020-10-13 09:03:32 +02:00
Paolo Barbolini
ed9ca92de8
Bump our MSRV to 1.45.2
2020-10-13 09:03:32 +02:00
dvermd
0174a29a45
bump base64 version to 0.13.0
2020-10-06 19:23:02 +02:00
Paolo Barbolini
bfd3300df3
Improve comments in smtp selfsigned example
2020-10-04 10:17:09 +02:00
Paolo Barbolini
6526eff5b2
Allow configuring a custom root certificate in TlsParametersBuilder
2020-10-04 10:17:09 +02:00
dvermd
e00eff8b2a
Implement From for Credentials
2020-10-02 08:52:56 +02:00
Alexander Jackson
5beef57c18
fix(email): Make doctest rustc-1.40 compatible
2020-09-29 19:48:10 +02:00
Alexander Jackson
b10b04ada8
docs(email): Add doctests/examples
...
Add doctests/examples for `Address`, `Mailbox`, `Mailboxes` and
`Envelope`.
2020-09-29 19:48:10 +02:00
Paolo Barbolini
30a8797acf
Add TlsParametersBuilder with dangerous options
2020-09-23 19:18:24 +02:00
Julien Blatecky
c5fef28ac9
Add Content-ID header for attachments
2020-09-23 19:17:34 +02:00
Paolo Barbolini
bf32554e51
chore: fix unused mut warning
2020-09-09 13:12:26 +02:00
Paolo Barbolini
9983bb53c3
chore(Cargo.toml): try to tidy up the list of features and dependencies
2020-09-09 13:12:26 +02:00
Paolo Barbolini
8e49c60ff8
chore: fix benches
...
Makes running cargo check --all-features --all-targets work again
2020-09-09 13:12:26 +02:00
Paolo Barbolini
e156520feb
clippy: fix warnings in tests
...
Makes running 'cargo clippy --all-features --tests' work
2020-09-09 13:12:26 +02:00
Paolo Barbolini
ec7d63c8de
chore: AsRef is part of Rust's prelude
2020-09-09 13:12:26 +02:00
Paolo Barbolini
e5460c4ba1
Implement Clone for SendmailTransport
2020-09-09 13:12:26 +02:00
Paolo Barbolini
d2912a3e3f
fix: Default impl for SendmailTransport
2020-09-09 13:12:26 +02:00
Alexis Mousset
9b3bd00a61
chore(all): Move from lettre.at to lettre.rs
2020-09-09 10:19:39 +02:00
Alexis Mousset
990de687aa
chore(all): Prepare 0.10.0-alpha.2 release
2020-09-09 09:53:54 +02:00
Alexis Mousset
31a3be1cba
run cargo fmt
2020-09-09 09:46:53 +02:00
Alexis Mousset
47dfdf7ee8
Add back removed examples
2020-09-09 09:46:53 +02:00
Manuel Pelloni
47c4077b14
Improve documentation
...
Co-authored-by: Paolo Barbolini <paolo@paolo565.org >
2020-09-09 09:46:53 +02:00
Manuel Pelloni
8869c7fdb4
Remove no_run from examples
2020-09-09 09:46:53 +02:00
Manuel Pelloni
3cf89935af
Improve documentation
2020-09-09 09:46:53 +02:00
Manuel Pelloni
ce957ee346
Remove unused unstable feature
2020-09-09 09:46:53 +02:00
Paolo Barbolini
f87c80e05c
Update rustdoc html_favicon_url to use the new lettre.rs domain
2020-09-08 22:48:37 +02:00
Paolo Barbolini
1c4a3f0fb3
chore: remove SmtpClient from the public API
...
We don't provide a method to construct it anyway, so it doesn't make sense
to expose it.
2020-09-08 22:48:37 +02:00
Paolo Barbolini
393d414700
Improve documentation for SmtpTransport methods
2020-09-08 22:48:37 +02:00
Paolo Barbolini
a83f927109
pool: document pool defaults
2020-09-08 21:49:09 +02:00
Paolo Barbolini
c59f67d808
pool: use better defaults
...
* increases the max_size to r2d2' default of 10
* decreases the min_idle number of connections to 0 (was equal to max_size before)
* decreases the idle timeout from 10 minutes to 1 minute
2020-09-08 21:49:09 +02:00
Paolo Barbolini
087e1e9c31
ci: skip async-std build on 1.40.0
...
async-mutex 1.3.0 broke our MSRV
2020-09-08 12:12:31 +02:00
Paolo Barbolini
69d48c4be7
Don't require Transport::{Ok, Error} to inherit specific traits
2020-09-07 22:35:46 +02:00
Paolo Barbolini
04b42879b0
refactor: optimize parts of the code
...
Uses the much faster `slice::is_ascii` implementation and avoids copying `v` in `utf8_b.rs`
2020-09-01 15:36:27 +02:00
Alexis Mousset
d5c1ab8dd1
chore(all): Update copyright information
2020-08-28 15:43:43 +02:00
Paolo Barbolini
42a34175ac
Disable tracing attribute feature
2020-08-28 12:36:58 +02:00
Paolo Barbolini
542ea4ffd2
refactor(logging): move from log to tracing
2020-08-28 12:36:58 +02:00
Alexis Mousset
41d68616e0
Remove ClientId::new_domain
2020-08-28 11:56:22 +02:00
Alexis Mousset
36aab20086
Mark ClientId::new as deprecated
2020-08-28 11:56:22 +02:00
Alexis Mousset
98f09117f7
fix(transport-smtp): Use 127.0.0.1 literal as EHLO parameter when we have no hostname
...
Also fix formatting of address literals
Comes from 2275fd8d13
with a different approach for default value.
2020-08-28 11:56:22 +02:00
Paolo Barbolini
c0ef9a38a1
Implement async smtp via tokio 0.2
2020-08-22 18:44:36 +02:00
Alexis Mousset
6b6f130070
chore(all): Fix ci tests
2020-08-22 18:41:38 +02:00
Paolo Barbolini
694a6d2852
Optimize Address implementation
...
This reduces the mem::size_of::<Address>() from 72 to 32 and removes
two heap allocations of String when constructing a new instance of Address.
2020-08-22 15:29:11 +02:00
Manuel Pelloni
f865fc1bce
Implement creating SmtpTransport using STARTTLS
2020-08-19 12:12:59 +02:00
Paolo Barbolini
60e3a0b7cb
refactor: backport improvements from Tokio02 support
2020-08-13 23:37:30 +02:00
Paolo Barbolini
c8ec8984b8
refactor: move SmtpTransport and SmtpClient to it's own module
2020-08-13 23:37:30 +02:00