Fix serde-serialize feature and disable unwanted test

This commit is contained in:
Diggory Hardy 2019-09-16 14:26:27 +01:00
parent 0557feb5b9
commit a99af1cdc2
3 changed files with 5 additions and 1 deletions

View File

@ -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";

View File

@ -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};

View File

@ -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};