Use serde_derive instead of serde_macros.
This commit is contained in:
parent
4e29dc1b2e
commit
4f13a96ae6
2 changed files with 6 additions and 4 deletions
|
@ -29,7 +29,7 @@ name = "cgmath"
|
||||||
[features]
|
[features]
|
||||||
unstable = []
|
unstable = []
|
||||||
default = ["rustc-serialize"]
|
default = ["rustc-serialize"]
|
||||||
eders = ["serde", "serde_macros"]
|
eders = ["serde", "serde_derive"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
approx = "0.1"
|
approx = "0.1"
|
||||||
|
@ -37,7 +37,7 @@ num-traits = "0.1"
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
rustc-serialize = { version = "0.3", optional = true }
|
rustc-serialize = { version = "0.3", optional = true }
|
||||||
serde = { version = "0.8", optional = true }
|
serde = { version = "0.8", optional = true }
|
||||||
serde_macros = { version = "0.8", optional = true }
|
serde_derive = { version = "0.8", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
glium = "0.15"
|
glium = "0.15"
|
||||||
|
|
|
@ -50,8 +50,7 @@
|
||||||
//! use cgmath::prelude::*;
|
//! use cgmath::prelude::*;
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![cfg_attr(feature = "eders", feature(plugin, custom_derive))]
|
#![cfg_attr(feature = "eders", feature(proc_macro))]
|
||||||
#![cfg_attr(feature = "eders", plugin(serde_macros))]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate approx;
|
extern crate approx;
|
||||||
|
@ -61,6 +60,9 @@ extern crate rand;
|
||||||
#[cfg(feature = "rustc-serialize")]
|
#[cfg(feature = "rustc-serialize")]
|
||||||
extern crate rustc_serialize;
|
extern crate rustc_serialize;
|
||||||
|
|
||||||
|
#[cfg(feature = "eders")]
|
||||||
|
#[macro_use]
|
||||||
|
extern crate serde_derive;
|
||||||
#[cfg(feature = "eders")]
|
#[cfg(feature = "eders")]
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue