Merge pull request #389 from bitshifter/serde_derive
Use serde_derive instead of serde_macros.
This commit is contained in:
commit
920e47526d
2 changed files with 6 additions and 4 deletions
|
@ -29,7 +29,7 @@ name = "cgmath"
|
|||
[features]
|
||||
unstable = []
|
||||
default = ["rustc-serialize"]
|
||||
eders = ["serde", "serde_macros"]
|
||||
eders = ["serde", "serde_derive"]
|
||||
use_simd = ["simd"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -38,7 +38,7 @@ num-traits = "0.1"
|
|||
rand = "0.3"
|
||||
rustc-serialize = { version = "0.3", optional = true }
|
||||
serde = { version = "0.8", optional = true }
|
||||
serde_macros = { version = "0.8", optional = true }
|
||||
serde_derive = { version = "0.8", optional = true }
|
||||
simd = { version = "0.2", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -49,8 +49,7 @@
|
|||
//! ```rust
|
||||
//! use cgmath::prelude::*;
|
||||
//! ```
|
||||
#![cfg_attr(feature = "eders", feature(plugin, custom_derive))]
|
||||
#![cfg_attr(feature = "eders", plugin(serde_macros))]
|
||||
|
||||
#![cfg_attr(feature = "use_simd", feature(specialization))]
|
||||
|
||||
#[macro_use]
|
||||
|
@ -61,6 +60,9 @@ extern crate rand;
|
|||
#[cfg(feature = "rustc-serialize")]
|
||||
extern crate rustc_serialize;
|
||||
|
||||
#[cfg(feature = "eders")]
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
#[cfg(feature = "eders")]
|
||||
extern crate serde;
|
||||
|
||||
|
|
Loading…
Reference in a new issue