Fix compilation when only the `serde-serialize` feature of nalgebra is enabled.

This commit is contained in:
Crozet Sébastien 2021-04-01 11:40:27 +02:00
parent d16411c6db
commit 2602f48452
2 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,8 @@ jobs:
run: cargo build --no-default-features;
- name: Build (default features)
run: cargo build;
- name: Build --features serde-serialize
run: cargo build --features serde-serialize
- name: Build --all-features
run: cargo build --all-features;
- name: Build nalgebra-glm

View File

@ -23,10 +23,10 @@ path = "src/lib.rs"
[features]
default = [ "std" ]
std = [ "matrixmultiply", "simba/std" ]
std = [ "matrixmultiply", "simba/std", "serde/std" ]
sparse = [ ]
debug = [ "approx/num-complex", "rand" ]
alloc = [ ]
alloc = [ "serde/alloc" ]
io = [ "pest", "pest_derive" ]
compare = [ "matrixcompare-core" ]
libm = [ "simba/libm" ]