aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-08-12 14:46:25 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-08-12 18:37:27 +0200
commit7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5 (patch)
tree7c3323204e3fb5d85edcb95b97748962e3978ae1 /components/msg
parenta22913569c2fa917015b23c27cb2f55de2a69ff2 (diff)
downloadservo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.tar.gz
servo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.zip
Update serde to 0.8 (fixes #12659)
Diffstat (limited to 'components/msg')
-rw-r--r--components/msg/Cargo.toml13
-rw-r--r--components/msg/constellation_msg.rs4
-rw-r--r--components/msg/lib.rs1
3 files changed, 12 insertions, 6 deletions
diff --git a/components/msg/Cargo.toml b/components/msg/Cargo.toml
index 06e60c24054..f8795576a17 100644
--- a/components/msg/Cargo.toml
+++ b/components/msg/Cargo.toml
@@ -11,15 +11,16 @@ path = "lib.rs"
[dependencies]
bitflags = "0.7"
-cssparser = {version = "0.5.4", features = ["heap_size", "serde-serialization"]}
+cssparser = {version = "0.5.7", features = ["heap_size", "serde-serialization"]}
heapsize = "0.3.0"
heapsize_plugin = "0.1.2"
-hyper = {version = "0.9.9", features = ["serde-serialization"]}
-ipc-channel = "0.4.0"
+hyper = "0.9.9"
+hyper_serde = "0.1.4"
+ipc-channel = "0.5"
plugins = {path = "../plugins"}
-serde = "0.7.15"
-serde_macros = "0.7.15"
-url = {version = "1.0.0", features = ["heap_size", "serde"]}
+serde = "0.8"
+serde_macros = "0.8"
+url = {version = "1.2", features = ["heap_size", "serde"]}
[dependencies.webrender_traits]
git = "https://github.com/servo/webrender_traits"
diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs
index 530bceaeb39..51e2a7635d1 100644
--- a/components/msg/constellation_msg.rs
+++ b/components/msg/constellation_msg.rs
@@ -191,7 +191,11 @@ pub struct Image {
#[derive(Clone, Deserialize, Serialize)]
pub struct LoadData {
pub url: Url,
+ #[serde(deserialize_with = "::hyper_serde::deserialize",
+ serialize_with = "::hyper_serde::serialize")]
pub method: Method,
+ #[serde(deserialize_with = "::hyper_serde::deserialize",
+ serialize_with = "::hyper_serde::serialize")]
pub headers: Headers,
pub data: Option<Vec<u8>>,
pub referrer_policy: Option<ReferrerPolicy>,
diff --git a/components/msg/lib.rs b/components/msg/lib.rs
index 13923b16b6e..af96cb541a4 100644
--- a/components/msg/lib.rs
+++ b/components/msg/lib.rs
@@ -12,6 +12,7 @@
extern crate bitflags;
extern crate heapsize;
extern crate hyper;
+extern crate hyper_serde;
extern crate ipc_channel;
extern crate serde;
extern crate url;