From df33dec457d57a6f910ab7c0429ecf95fc14fb13 Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Sat, 10 Apr 2021 00:52:54 -0300 Subject: [PATCH] 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. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d9418a88..39dbb555 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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