Skip to content

Commit

Permalink
Merge pull request #14 from arthurprs/master
Browse files Browse the repository at this point in the history
Update serde
  • Loading branch information
jimmycuadra authored Oct 15, 2016
2 parents d2b8c8e + 2675124 commit 6156b20
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 24 deletions.
18 changes: 7 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,19 @@ version = "0.5.4"

[build-dependencies.serde_codegen]
optional = true
version = "0.7.12"

[build-dependencies.syntex]
optional = true
version = "0.33.0"
version = "0.8"

[dependencies]
hyper = "0.8.1"
openssl = "0.7.13"
serde = "0.7.7"
serde_json = "0.7.1"
serde = "0.8"
serde_json = "0.8"
url = "0.5.9"

[dependencies.serde_macros]
[dependencies.serde_derive]
optional = true
version = "0.7.7"
version = "0.8"

[features]
default = ["serde_codegen", "syntex"]
nightly = ["serde_macros"]
default = ["serde_codegen"]
nightly = ["serde_derive"]
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(not(feature = "serde_macros"))]
#[cfg(not(feature = "serde_derive"))]
mod inner {
extern crate serde_codegen;

Expand Down Expand Up @@ -26,7 +26,7 @@ mod inner {
}
}

#[cfg(feature = "serde_macros")]
#[cfg(feature = "serde_derive")]
mod inner {
pub fn main() {}
}
Expand Down
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Contains etcd error types.
#[cfg(feature = "serde_macros")]
#[cfg(feature = "serde_derive")]
include!("error_gen.rs");

#[cfg(not(feature = "serde_macros"))]
#[cfg(not(feature = "serde_derive"))]
include!(concat!(env!("OUT_DIR"), "/error.rs"));
4 changes: 2 additions & 2 deletions src/keys.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Types for the primary key space operations.
#[cfg(feature = "serde_macros")]
#[cfg(feature = "serde_derive")]
include!("keys_gen.rs");

#[cfg(not(feature = "serde_macros"))]
#[cfg(not(feature = "serde_derive"))]
include!(concat!(env!("OUT_DIR"), "/keys.rs"));
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
//! assert_eq!(value, "bar".to_owned());
//! }
//! ```
#![cfg_attr(feature = "serde_macros", feature(custom_derive, plugin))]
#![cfg_attr(feature = "serde_macros", plugin(serde_macros))]
#![cfg_attr(feature = "serde_derive", feature(proc_macro))]
#![deny(missing_docs)]

extern crate hyper;
extern crate openssl;
extern crate serde;
#[cfg(feature = "serde_derive")]
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate url;

Expand Down
4 changes: 2 additions & 2 deletions src/stats.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Types for statistics operations.
#[cfg(feature = "serde_macros")]
#[cfg(feature = "serde_derive")]
include!("stats_gen.rs");

#[cfg(not(feature = "serde_macros"))]
#[cfg(not(feature = "serde_derive"))]
include!(concat!(env!("OUT_DIR"), "/stats.rs"));
4 changes: 2 additions & 2 deletions src/version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Types for the version endpoint.
#[cfg(feature = "serde_macros")]
#[cfg(feature = "serde_derive")]
include!("version_gen.rs");

#[cfg(not(feature = "serde_macros"))]
#[cfg(not(feature = "serde_derive"))]
include!(concat!(env!("OUT_DIR"), "/version.rs"));

0 comments on commit 6156b20

Please sign in to comment.