diff options
Diffstat (limited to 'components/gfx_traits')
-rw-r--r-- | components/gfx_traits/Cargo.toml | 4 | ||||
-rw-r--r-- | components/gfx_traits/lib.rs | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml index 6289f073cc7..ce66910fd75 100644 --- a/components/gfx_traits/Cargo.toml +++ b/components/gfx_traits/Cargo.toml @@ -17,3 +17,7 @@ features = ["plugins"] [dependencies.msg] path = "../msg" + +[dependencies] +serde = "0.6" +serde_macros = "0.6" diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 2500db1db20..b2a7789089e 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -2,14 +2,24 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![feature(custom_derive, plugin)] +#![plugin(serde_macros)] #![crate_name = "gfx_traits"] #![crate_type = "rlib"] extern crate azure; extern crate layers; extern crate msg; +extern crate serde; pub mod color; mod paint_listener; pub use paint_listener::PaintListener; +use msg::constellation_msg::Failure; + +/// Messages from the paint task to the constellation. +#[derive(Deserialize, Serialize)] +pub enum PaintMsg { + Failure(Failure), +} |