From a99af1cdc26f696658c29d7cb5ce01fae5a1eaef Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Mon, 16 Sep 2019 14:26:27 +0100 Subject: [PATCH] Fix serde-serialize feature and disable unwanted test --- ci/test.sh | 1 - src/base/coordinates.rs | 2 ++ src/base/vec_storage.rs | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/test.sh b/ci/test.sh index ea61202f..ba56b7d8 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -4,7 +4,6 @@ set -ev if [ -z "$NO_STD" ]; then if [ -z "$LAPACK" ]; then - cargo test --verbose --no-default-features --lib; cargo test --verbose --no-default-features --features "std" --tests; cargo test --verbose; cargo test --verbose --features "arbitrary"; diff --git a/src/base/coordinates.rs b/src/base/coordinates.rs index 832723e3..be0929cf 100644 --- a/src/base/coordinates.rs +++ b/src/base/coordinates.rs @@ -6,6 +6,8 @@ use std::mem; use std::ops::{Deref, DerefMut}; +#[cfg(feature = "serde-serialize")] +use serde::{Serialize, Deserialize}; use crate::base::dimension::{U1, U2, U3, U4, U5, U6}; use crate::base::storage::{ContiguousStorage, ContiguousStorageMut}; diff --git a/src/base/vec_storage.rs b/src/base/vec_storage.rs index 2b4bf743..a8f7f28c 100644 --- a/src/base/vec_storage.rs +++ b/src/base/vec_storage.rs @@ -4,6 +4,9 @@ use std::io::{Result as IOResult, Write}; #[cfg(all(feature = "alloc", not(feature = "std")))] use alloc::vec::Vec; +#[cfg(feature = "serde-serialize")] +use serde::{Serialize, Deserialize}; + use crate::base::allocator::Allocator; use crate::base::default_allocator::DefaultAllocator; use crate::base::dimension::{Dim, DimName, Dynamic, U1};