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

View File

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