From 3a1fb0ed88e56d6a59d4936e9c9a3b2ac3a33317 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Mon, 18 Sep 2017 14:31:17 +0200 Subject: [PATCH] Fix feature flagging for abomonation-serialize The tests can now be run without the abomonation feature. Also fixes a bug in the feature flagging for abomonation. --- src/lib.rs | 2 +- tests/core/mod.rs | 1 + tests/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b5e5e3b2..6a87d081 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,7 +97,7 @@ extern crate serde; #[macro_use] extern crate serde_derive; -#[cfg(feature = "abomonation")] +#[cfg(feature = "abomonation-serialize")] extern crate abomonation; extern crate num_traits as num; diff --git a/tests/core/mod.rs b/tests/core/mod.rs index 71d09757..eb707f2c 100644 --- a/tests/core/mod.rs +++ b/tests/core/mod.rs @@ -4,4 +4,5 @@ mod matrix; mod matrix_slice; mod blas; mod serde; +#[cfg(feature = "abomonation-serialize")] mod abomonation; diff --git a/tests/lib.rs b/tests/lib.rs index 9a1174e7..3cdbb6d4 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -5,6 +5,7 @@ extern crate quickcheck; extern crate approx; extern crate num_traits as num; extern crate serde_json; +#[cfg(feature = "abomonation-serialize")] extern crate abomonation; extern crate rand; extern crate alga;