diff --git a/Cargo.toml b/Cargo.toml index 828b357..485444d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.16.3" +version = "0.16.4" authors = ["The Servo Project Developers"] description = "Geometry primitives" documentation = "https://docs.rs/euclid/" @@ -14,8 +14,7 @@ unstable = [] [dependencies] num-traits = {version = "0.1.32", default-features = false} -log = "0.3.1" -serde = "1.0" +serde = { version = "1.0", features = ["serde_derive"] } [dev-dependencies] rand = "0.3.7" diff --git a/src/lib.rs b/src/lib.rs index 7bf8b09..10cc5a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,8 +55,7 @@ //! assert_eq!(p.x, p.x_typed().get()); //! ``` -#[cfg_attr(test, macro_use)] -extern crate log; +#[macro_use] extern crate serde; extern crate num_traits; diff --git a/src/rotation.rs b/src/rotation.rs index d961992..47ef41a 100644 --- a/src/rotation.rs +++ b/src/rotation.rs @@ -17,7 +17,7 @@ use {TypedPoint2D, TypedPoint3D, TypedVector2D, TypedVector3D, Vector3D, point2, use {TypedTransform2D, TypedTransform3D, UnknownUnit}; /// An angle in radians -#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Hash)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Hash, Serialize, Deserialize)] pub struct Angle { pub radians: T, } diff --git a/src/transform3d.rs b/src/transform3d.rs index 7993ae7..2876c6c 100644 --- a/src/transform3d.rs +++ b/src/transform3d.rs @@ -768,7 +768,6 @@ mod tests { 0.0, 0.0, -1.0, 0.0, -1.0, -1.22222222, -0.0, 1.0 ); - debug!("result={:?} expected={:?}", result, expected); assert!(result.approx_eq(&expected)); }