From fc222903ac6756d72f2d1d42d21d5758fd92a3a4 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Sat, 10 Jun 2017 21:35:13 +0200 Subject: [PATCH 1/2] Update serde to 1.0 --- Cargo.toml | 2 +- src/gl_context_attributes.rs | 4 ++-- src/gl_limits.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b6fa359..a1295a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ test_egl_in_linux = ["libloading", "lazy_static"] log = "0.3" gleam = "0.4" euclid = "0.14" -serde = { version = "0.9", optional = true } +serde = { version = "1.0", optional = true } osmesa-sys = { version = "0.1", optional = true } libloading = { version = "0.4", optional = true, default-features = false } lazy_static = { version = "0.2", optional = true } diff --git a/src/gl_context_attributes.rs b/src/gl_context_attributes.rs index 0d855bd..9779be4 100644 --- a/src/gl_context_attributes.rs +++ b/src/gl_context_attributes.rs @@ -14,9 +14,9 @@ pub struct GLContextAttributes { } #[cfg(feature = "serde")] -impl Deserialize for GLContextAttributes { +impl<'de> Deserialize<'de> for GLContextAttributes { fn deserialize(deserializer: D) -> Result - where D: Deserializer + where D: Deserializer<'de> { let values = try!(<[_; 6]>::deserialize(deserializer)); Ok(GLContextAttributes { diff --git a/src/gl_limits.rs b/src/gl_limits.rs index cf204f5..cff4c9a 100644 --- a/src/gl_limits.rs +++ b/src/gl_limits.rs @@ -11,9 +11,9 @@ pub struct GLLimits { } #[cfg(feature = "serde")] -impl Deserialize for GLLimits { +impl<'de> Deserialize<'de> for GLLimits { fn deserialize(deserializer: D) -> Result - where D: Deserializer + where D: Deserializer<'de> { let values = try!(<[_; 3]>::deserialize(deserializer)); Ok(GLLimits { From f069d462ad1d1fb16b897850c07c269291a34acc Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Wed, 14 Jun 2017 17:48:38 +0200 Subject: [PATCH 2/2] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a1295a7..bb71397 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "offscreen_gl_context" license = "MIT / Apache-2.0" -version = "0.9.0" +version = "0.10.0" authors = ["Emilio Cobos Álvarez ", "The Servo Project Developers"] description = "Creation and manipulation of HW accelerated offscreen rendering contexts in multiple platforms. Originally intended for the Servo project's WebGL implementation." repository = "https://github.com/emilio/rust-offscreen-rendering-context"