Merge pull request #857 from dimforge/serde-std

Fix compilation when only the `serde-serialize` feature of nalgebra is enabled
This commit is contained in:
Sébastien Crozet 2021-04-01 12:07:16 +02:00 committed by GitHub
commit 889a2ace8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -23,7 +23,7 @@ path = "src/lib.rs"
[features] [features]
default = [ "std" ] default = [ "std" ]
std = [ "matrixmultiply", "simba/std" ] std = [ "matrixmultiply", "simba/std", "serde/std" ]
sparse = [ ] sparse = [ ]
debug = [ "approx/num-complex", "rand" ] debug = [ "approx/num-complex", "rand" ]
alloc = [ ] alloc = [ ]