diff --git a/Cargo.toml b/Cargo.toml index 5066b65662..8bd1b5a83f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,9 @@ path = "src/rust/lib.rs" [dependencies] hyper = "*" mime = "*" -rustc-serialize = "*" yup-oauth2 = "*" +serde = "*" +serde_macros = "*" [dev-dependencies] yup-hyper-mock = "*" diff --git a/src/rust/cmn.rs b/src/rust/cmn.rs index 45b31cf192..e7f1529295 100644 --- a/src/rust/cmn.rs +++ b/src/rust/cmn.rs @@ -45,8 +45,8 @@ impl ReadSeek for T {} /// A utility type which can decode a server response that indicates error #[derive(Deserialize)] pub struct JsonServerError { - error: String, - error_description: Option + pub error: String, + pub error_description: Option }