feat(lib): use serge instead of serialize

However, for some reason, the `Serialize/Deserialize` macros don't work
for me, even though they work just fine in the respective tests of
the serge crate. What am I possibly doing wrong ?
This commit is contained in:
Sebastian Thiel
2015-03-20 11:28:09 +01:00
parent b6ebb1ec37
commit d3bb130be0
7 changed files with 19 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ impl<T: Seek + Read> ReadSeek for T {}
/// A utility type which can decode a server response that indicates error
#[derive(RustcDecodable)]
#[derive(Deserialize)]
pub struct JsonServerError {
error: String,
error_description: Option<String>

View File

@@ -1,10 +1,11 @@
#![feature(core,io,old_path)]
#![feature(core,io,old_path, custom_derive, plugin)]
#![allow(dead_code, deprecated, unused_features)]
//! library with code shared by all generated implementations
#![plugin(serde_macros)]
extern crate hyper;
extern crate mime;
extern crate "rustc-serialize" as rustc_serialize;
extern crate "yup-oauth2" as oauth2;
extern crate serde;
// just pull it in the check if it compiles
mod cmn;