summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Korber <philippkorber@gmail.com>2018-11-23 20:16:52 +0100
committerPhilipp Korber <philippkorber@gmail.com>2018-11-23 20:16:52 +0100
commitc02c3dd1efc03ef76857b2d0578843a3cf5f50f1 (patch)
tree89d67513f6ccbbae457644c6e76d091892b15abd
parent7845ee5953b4cee0df5b180d5066d59fe6945c9c (diff)
chore(deps) use crates versions of media-type(/mime), media-type-impl-utils
-rw-r--r--headers/src/header_components/disposition.rs4
-rw-r--r--headers/src/header_components/email.rs2
-rw-r--r--headers/src/header_components/media_type.rs2
-rw-r--r--internals/Cargo.toml9
-rw-r--r--internals/src/lib.rs2
5 files changed, 7 insertions, 12 deletions
diff --git a/headers/src/header_components/disposition.rs b/headers/src/header_components/disposition.rs
index 66c4a25..575f900 100644
--- a/headers/src/header_components/disposition.rs
+++ b/headers/src/header_components/disposition.rs
@@ -4,8 +4,8 @@ use std::fmt;
use failure::Fail;
use soft_ascii_string::SoftAsciiStr;
-use mime::push_params_to_buffer;
-use mime::spec::{MimeSpec, Ascii, Modern, Internationalized};
+use media_type::push_params_to_buffer;
+use media_type::spec::{MimeSpec, Ascii, Modern, Internationalized};
#[cfg(feature="serde")]
use serde::{
diff --git a/headers/src/header_components/email.rs b/headers/src/header_components/email.rs
index c3cb4fe..afe549f 100644
--- a/headers/src/header_components/email.rs
+++ b/headers/src/header_components/email.rs
@@ -4,7 +4,7 @@ use std::borrow::Cow;
use failure::Fail;
use soft_ascii_string::{SoftAsciiStr, SoftAsciiString, SoftAsciiChar};
-use mime::spec::{MimeSpec, Ascii, Internationalized, Modern};
+use media_type::spec::{MimeSpec, Ascii, Internationalized, Modern};
use quoted_string::quote_if_needed;
use internals::error::{EncodingError, EncodingErrorKind};
diff --git a/headers/src/header_components/media_type.rs b/headers/src/header_components/media_type.rs
index a636258..aebb9fc 100644
--- a/headers/src/header_components/media_type.rs
+++ b/headers/src/header_components/media_type.rs
@@ -9,7 +9,7 @@ use std::fmt;
use serde::{Serialize, Serializer, Deserialize, Deserializer, de::{self, Visitor}};
use soft_ascii_string::{SoftAsciiStr,SoftAsciiChar};
-use mime::{
+use media_type::{
MediaType as _MediaType,
Name, AnyMediaType,
spec::{MimeSpec, Ascii, Internationalized, Modern}
diff --git a/internals/Cargo.toml b/internals/Cargo.toml
index 61a99ed..1808868 100644
--- a/internals/Cargo.toml
+++ b/internals/Cargo.toml
@@ -19,15 +19,10 @@ quoted_printable = "0.4.0"
idna = "0.1.4"
percent-encoding = "1.0.0"
quoted-string = "0.6"
-media-type-impl-utils = { git="https://github.com/1aim/media-type-impl-utils" }
+media-type-impl-utils = "0.3.0-unstable"
soft-ascii-string = "1.0"
vec1 = "1.0"
-
-[dependencies.mime]
-git="https://github.com/1aim/mime"
-branch="parser_revamp"
-features=["expose-param-utils"]
-version="0.4.0"
+media-type = { version="0.4.0-unstable", features=["expose-param-utils"] }
[features]
diff --git a/internals/src/lib.rs b/internals/src/lib.rs
index edec5b0..753f090 100644
--- a/internals/src/lib.rs
+++ b/internals/src/lib.rs
@@ -5,7 +5,7 @@ extern crate failure;
#[macro_use]
extern crate nom;
extern crate chrono;
-extern crate mime;
+extern crate media_type;
extern crate soft_ascii_string;
extern crate base64;
extern crate quoted_printable;