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
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
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
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
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
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
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
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
Paolo Barbolini
1b45c6dd58
refactor: move SmtpClient to it's own module
2020-08-13 23:37:30 +02:00
Paolo Barbolini
c8d73dd940
refactor: stop exporting TlsParameters and Tls as top-level
...
Most users probably won't need it, after all we made the builder "dangerous"
2020-08-07 19:26:08 +02:00
Paolo Barbolini
bcbdbecd95
refactor: TlsParameters to not expose the inner tls library
...
Also made it compile with both TLS libraries enabled
2020-08-07 19:26:08 +02:00
Paolo Barbolini
d75fb5956b
Merge pull request #445 from paolobarbolini/docs-010
...
Update docs and examples for 0.10
2020-08-04 15:27:52 +02:00
Paolo Barbolini
49787e0c41
chore: avoid collecting iterators when possible
2020-08-04 11:44:47 +02:00
Paolo Barbolini
3e62efb46a
chore: simplify ClientId::hostname
2020-08-04 11:44:47 +02:00
Paolo Barbolini
6c440bda73
chore: minor improvements
2020-08-04 11:44:47 +02:00
Paolo Barbolini
cedfd8bfbb
chore: simplify Error and Display implementations
2020-08-04 11:44:47 +02:00
Paolo Barbolini
889ef0ba6a
Merge pull request #435 from paolobarbolini/bufstream
...
Replace unmaintained bufstream crate with std::io::BufReader
2020-08-04 10:30:50 +02:00
Paolo Barbolini
4b238829c7
chore: replace Vec::write_all usage with Vec::extend_from_slice
...
The underlying implementation simply calls extends_from_slice anyway,
but this removes the error that would never happen
https://doc.rust-lang.org/1.45.2/src/std/io/impls.rs.html#389-393
2020-08-04 10:09:25 +02:00
Paolo Barbolini
fbbd015109
Update docs and examples for 0.10
2020-08-02 22:39:25 +02:00
Paolo Barbolini
8fa66c1e0f
clippy: fix warning from #444
2020-08-02 21:48:26 +02:00
Paolo Barbolini
72015da467
Add support for encrypted and signed multipart emails ( #444 )
...
Co-authored-by: Tim Anderson <tim@claritynetworks.com.au >
2020-08-02 21:47:37 +02:00