Make "compare" a required feature for the `matrixcompare` example

This avoids distracting error messages when running `cargo test` and
gives a better error when trying to run the example without the required
feature.
This commit is contained in:
Vinzent Steinberg 2021-04-10 00:52:54 -03:00
parent bbe1d0cd56
commit df33dec457
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ itertools = "0.10"
[workspace]
members = [ "nalgebra-lapack", "nalgebra-glm", "nalgebra-sparse" ]
[[example]]
name = "matrixcompare"
required-features = ["compare"]
[[bench]]
name = "nalgebra_bench"
harness = false