Skip to content

Commit 962518a

Browse files
committed
v0.5.0
1 parent 980a927 commit 962518a

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
mail-send 0.5.0
2+
================================
3+
- Bump `mail-parser` dependency to 0.10
4+
- Bump `mail-builder` dependency to 0.4
5+
- Bump `mail-auth` dependency to 0.6
6+
17
mail-send 0.4.9
28
================================
39
- Bump `rustls` dependency to 0.23

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mail-send"
33
description = "E-mail delivery library with SMTP and DKIM support"
4-
version = "0.4.9"
4+
version = "0.5.0"
55
edition = "2021"
66
authors = [ "Stalwart Labs <hello@stalw.art>"]
77
license = "Apache-2.0 OR MIT"
@@ -16,9 +16,9 @@ doctest = false
1616

1717
[dependencies]
1818
smtp-proto = { version = "0.1" }
19-
mail-auth = { version = "0.4", optional = true }
20-
mail-builder = { version = "0.3", optional = true }
21-
mail-parser = { version = "0.9", optional = true }
19+
mail-auth = { version = "0.6", optional = true }
20+
mail-builder = { version = "0.4", optional = true }
21+
mail-parser = { version = "0.10", optional = true }
2222
base64 = "0.22"
2323
rand = { version = "0.8.5", optional = true }
2424
md5 = { version = "0.7.0", optional = true }
@@ -27,7 +27,7 @@ rustls = { version = "0.23", default-features = false, features = ["std"]}
2727
tokio-rustls = { version = "0.26", default-features = false }
2828
webpki-roots = { version = "0.26"}
2929
rustls-pki-types = { version = "1" }
30-
gethostname = { version = "0.4"}
30+
gethostname = { version = "0.5"}
3131

3232
[dev-dependencies]
3333
tokio = { version = "1.16", features = ["net", "io-util", "time", "rt-multi-thread", "macros"] }

src/smtp/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<T: AsRef<str> + PartialEq + Eq + Hash> Credentials<T> {
227227
md5::compute(format!("{username}:{realm}:{secret}").as_bytes());
228228

229229
let a2 = md5::compute(
230-
if values.get("qpop").map_or(false, |v| v == "auth") {
230+
if values.get("qpop").is_some_and(|v| v == "auth") {
231231
format!("AUTHENTICATE:{digest_uri}")
232232
} else {
233233
format!("AUTHENTICATE:{digest_uri}:00000000000000000000000000000000")

src/smtp/message.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<'x> From<&'x str> for Address<'x> {
185185
}
186186
}
187187

188-
impl<'x> From<String> for Address<'x> {
188+
impl From<String> for Address<'_> {
189189
fn from(email: String) -> Self {
190190
Address {
191191
email: email.into(),
@@ -232,7 +232,7 @@ impl<'x> From<(&'x str, &'x str)> for Parameter<'x> {
232232
}
233233
}
234234

235-
impl<'x> From<(String, String)> for Parameter<'x> {
235+
impl From<(String, String)> for Parameter<'_> {
236236
fn from(value: (String, String)) -> Self {
237237
Parameter {
238238
key: value.0.into(),
@@ -241,7 +241,7 @@ impl<'x> From<(String, String)> for Parameter<'x> {
241241
}
242242
}
243243

244-
impl<'x> From<String> for Parameter<'x> {
244+
impl From<String> for Parameter<'_> {
245245
fn from(value: String) -> Self {
246246
Parameter {
247247
key: value.into(),
@@ -250,7 +250,7 @@ impl<'x> From<String> for Parameter<'x> {
250250
}
251251
}
252252

253-
impl<'x> Display for Parameters<'x> {
253+
impl Display for Parameters<'_> {
254254
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
255255
if !self.params.is_empty() {
256256
for param in &self.params {
@@ -262,7 +262,7 @@ impl<'x> Display for Parameters<'x> {
262262
}
263263
}
264264

265-
impl<'x> Display for Parameter<'x> {
265+
impl Display for Parameter<'_> {
266266
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
267267
if let Some(value) = &self.value {
268268
write!(f, "{}={}", self.key, value)
@@ -283,7 +283,7 @@ impl<'x> IntoMessage<'x> for Message<'x> {
283283
}
284284

285285
#[cfg(feature = "builder")]
286-
impl<'x, 'y> IntoMessage<'x> for MessageBuilder<'y> {
286+
impl<'x> IntoMessage<'x> for MessageBuilder<'_> {
287287
fn into_message(self) -> crate::Result<Message<'x>> {
288288
let mut mail_from = None;
289289
let mut rcpt_to = std::collections::HashSet::new();

0 commit comments

Comments
 (0)