Use serde_derive instead of serde_macros.

This commit is contained in:
Cameron Hart 2016-12-18 13:13:48 +11:00
parent 4e29dc1b2e
commit 4f13a96ae6
2 changed files with 6 additions and 4 deletions

View file

@ -29,7 +29,7 @@ name = "cgmath"
[features]
unstable = []
default = ["rustc-serialize"]
eders = ["serde", "serde_macros"]
eders = ["serde", "serde_derive"]
[dependencies]
approx = "0.1"
@ -37,7 +37,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 }
[dev-dependencies]
glium = "0.15"

View file

@ -50,8 +50,7 @@
//! use cgmath::prelude::*;
//! ```
#![cfg_attr(feature = "eders", feature(plugin, custom_derive))]
#![cfg_attr(feature = "eders", plugin(serde_macros))]
#![cfg_attr(feature = "eders", feature(proc_macro))]
#[macro_use]
extern crate approx;
@ -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;