chore(deps): use serde_derive

This commit is contained in:
Sebastian Thiel
2016-10-09 15:58:11 +02:00
parent bc582e5761
commit 73f0e83086
3 changed files with 7 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ mime = "^ 0.2.0"
serde = "^ 0.8"
serde_json = "^ 0.8"
yup-oauth2 = { version = "^ 1.0", optional = true, default-features = false }
serde_macros = { version = "^ 0.8", optional = true }
serde_derive = { version = "^ 0.8", optional = true }
% for dep in cargo.get('dependencies', list()):
${dep}
% endfor
@@ -43,7 +43,7 @@ ${dep}
crate_name_we_depend_on = None
crate_version_we_depend_on = None
nightly_features = ["serde_macros", "yup-oauth2/nightly"]
nightly_features = ["serde_derive", "yup-oauth2/nightly"]
default_features = ["serde_codegen", "yup-oauth2/with-serde-codegen"]
if make.depends_on_suffix is not None:

View File

@@ -19,6 +19,10 @@
<%util:gen_info source="${self.uri}" />\
</%block>
#[cfg(feature = "nightly")]
#[macro_use]
extern crate serde_derive;
extern crate hyper;
extern crate serde;
extern crate serde_json;

View File

@@ -17,8 +17,7 @@ ${lib.docs(c)}
// We don't warn about this, as depending on the API, some data structures or facilities are never used.
// Instead of pre-determining this, we just disable the lint. It's manually tuned to not have any
// unused imports in fully featured APIs. Same with unused_mut ... .
#![cfg_attr(feature = "nightly", feature(custom_derive, custom_attribute, plugin))]
#![cfg_attr(feature = "nightly", plugin(serde_macros))]
#![cfg_attr(feature = "nightly", feature(proc_macro))]
#![allow(unused_imports, unused_mut, dead_code)]
#[cfg(feature = "nightly")]