From 9385e2eb4e602e8f8a24512ae99952b90cf82c39 Mon Sep 17 00:00:00 2001 From: Philipp Korber Date: Tue, 26 Mar 2019 16:23:16 +0100 Subject: chore(deps): updated deps - make all parts which use vec1 depend on v1.3.0 (and use `try_from_vec`) - make all parts which use mail-internals depend on v0.2.3 (which has an important bug fix) --- core/Cargo.toml | 4 ++-- headers/Cargo.toml | 6 +++--- headers/src/header_components/mailbox_list.rs | 2 +- headers/src/header_components/phrase.rs | 2 +- internals/Cargo.toml | 2 +- mail/Cargo.toml | 2 +- smtp/Cargo.toml | 8 ++++---- template/Cargo.toml | 8 ++++---- template/src/lib.rs | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 55cbd55..b10d345 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -20,13 +20,13 @@ test-utils = ["default", "lazy_static"] features = [ "serde-impl", "default" ] [dependencies] -mail-internals = "0.2.0" +mail-internals = "0.2.3" mail-headers = "0.6.0" failure = "0.1.2" futures = "0.1.24" log = "0.3.8" rand = "0.3.15" -vec1 = "1" +vec1 = "1.3.0" chrono = "0.4" soft-ascii-string = "1.0" serde = { version="1.0", optional=true, features=["derive"] } diff --git a/headers/Cargo.toml b/headers/Cargo.toml index 60d4a44..5be9f73 100644 --- a/headers/Cargo.toml +++ b/headers/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mail-headers" description = "[mail/headers] header parts for the mail crate (inkl. header map and standard header impl)" -version = "0.6.4" +version = "0.6.5" authors = ["Philipp Korber "] documentation = "https://docs.rs/mail-headers" keywords = [] @@ -17,13 +17,13 @@ traceing = [ "mail-internals/traceing" ] features = [ "serde-impl" ] [dependencies] -mail-internals = "0.2.2" +mail-internals = "0.2.3" failure = "0.1" owning_ref = "0.4" nom = "3.1.0" soft-ascii-string = "1" quoted-string = "0.6" -vec1 = "1" +vec1 = "1.3.0" chrono = "0.4" total-order-multi-map = "0.4.5" serde = { version="1.0", optional=true, features=["derive"] } diff --git a/headers/src/header_components/mailbox_list.rs b/headers/src/header_components/mailbox_list.rs index 68a9a30..5923008 100644 --- a/headers/src/header_components/mailbox_list.rs +++ b/headers/src/header_components/mailbox_list.rs @@ -147,7 +147,7 @@ macro_rules! impl_header_try_from_tuple { )* Ok( MailboxList( //UNWRAP_SAFE: len 0 is not implemented with the macro - $crate::vec1::Vec1::from_vec(out).unwrap() + $crate::vec1::Vec1::try_from_vec(out).unwrap() ) ) } } diff --git a/headers/src/header_components/phrase.rs b/headers/src/header_components/phrase.rs index 0d58d2c..10f56c5 100644 --- a/headers/src/header_components/phrase.rs +++ b/headers/src/header_components/phrase.rs @@ -77,7 +77,7 @@ impl Phrase { } } - let mut words = Vec1::from_vec(words) + let mut words = Vec1::try_from_vec(words) .map_err( |_| ComponentCreationError ::from_parent(Size0Error, "Phrase") .with_str_context(input.as_str()) diff --git a/internals/Cargo.toml b/internals/Cargo.toml index 41ae8cd..cbf2cf5 100644 --- a/internals/Cargo.toml +++ b/internals/Cargo.toml @@ -21,7 +21,7 @@ percent-encoding = "1.0.0" quoted-string = "0.6" media-type-impl-utils = "0.3.0-unstable" soft-ascii-string = "1.0" -vec1 = "1.0" +vec1 = "1.3.0" media-type = { version="0.4.0-unstable", features=["expose-param-utils"] } diff --git a/mail/Cargo.toml b/mail/Cargo.toml index eb997ac..661d673 100644 --- a/mail/Cargo.toml +++ b/mail/Cargo.toml @@ -35,7 +35,7 @@ required-features = ["smtp"] features = [ "handlebars", "smtp", "serde-impl" ] [dependencies] -mail-internals = "0.2.2" +mail-internals = "0.2.3" mail-headers = "0.6.4" mail-core = "0.6.1" mail-template = "0.6.0" diff --git a/smtp/Cargo.toml b/smtp/Cargo.toml index 8837f1a..626288d 100644 --- a/smtp/Cargo.toml +++ b/smtp/Cargo.toml @@ -12,10 +12,10 @@ repository = "https://github.com/1aim/mail-smtp" [dependencies] futures = "0.1" -failure = "0.1.1" -mail-core = "0.6.0" -mail-headers = "0.6.0" -mail-internals = "0.2.0" +failure = "0.1.5" +mail-core = "0.6.1" +mail-headers = "0.6.4" +mail-internals = "0.2.3" new-tokio-smtp = "0.8.1" [features] diff --git a/template/Cargo.toml b/template/Cargo.toml index 65d1e14..8aba450 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -18,13 +18,13 @@ handlebars-bindings = ["handlebars"] features = [ "handlebars-bindings" ] [dependencies] -mail-core = { version="0.6.0", features=["serde-impl"] } -mail-internals = "0.2.0" -mail-headers = { version="0.6.0", features=["serde-impl"] } +mail-core = { version="0.6.1", features=["serde-impl"] } +mail-internals = "0.2.3" +mail-headers = { version="0.6.4", features=["serde-impl"] } failure = "0.1.1" futures = "0.1.14" -vec1 = { version="1.1", features=["serde"]} +vec1 = { version="1.3.0", features=["serde"]} soft-ascii-string = "1.0" serde = { version="1", features=["derive"] } toml = "0.4.8" diff --git a/template/src/lib.rs b/template/src/lib.rs index 7a96b06..be3ce45 100644 --- a/template/src/lib.rs +++ b/template/src/lib.rs @@ -300,7 +300,7 @@ impl TemplateExt for Template let parts = MailParts { //UNWRAP_SAFE (complexly mapping a Vec1 is safe) - alternative_bodies: Vec1::from_vec(bodies).unwrap(), + alternative_bodies: Vec1::try_from_vec(bodies).unwrap(), inline_embeddings: inline_embeddings_vec, attachments }; -- cgit v1.2.3