From 5dfe06897f2b2fcc64d577ffc6f83ccc8699fda1 Mon Sep 17 00:00:00 2001 From: Andreas Longva Date: Tue, 26 Jan 2021 08:47:47 +0100 Subject: [PATCH] Rename nalgebra/proptest to /proptest-support This gives us some freedom in the future, in case we need additional dependencies for the proptest integration. --- .circleci/config.yml | 2 +- Cargo.toml | 3 ++- src/lib.rs | 2 +- src/proptest/mod.rs | 2 +- tests/lib.rs | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 033bc01a..6d293d37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,7 +57,7 @@ jobs: - checkout - run: name: test - command: cargo test --features arbitrary --features serde-serialize --features abomonation-serialize --features sparse --features debug --features io --features compare --features libm --features proptest --features slow-tests + command: cargo test --features arbitrary --features serde-serialize --features abomonation-serialize --features sparse --features debug --features io --features compare --features libm --features proptest-support --features slow-tests - run: name: test nalgebra-glm command: cargo test -p nalgebra-glm --features arbitrary --features serde-serialize --features abomonation-serialize --features sparse --features debug --features io --features compare --features libm --features slow-tests diff --git a/Cargo.toml b/Cargo.toml index c99ed83b..2662fe2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ io = [ "pest", "pest_derive" ] compare = [ "matrixcompare-core" ] libm = [ "simba/libm" ] libm-force = [ "simba/libm_force" ] +proptest-support = [ "proptest" ] # This feature is only used for tests, and enables tests that require more time to run slow-tests = [] @@ -91,4 +92,4 @@ lto = true [package.metadata.docs.rs] # Enable certain features when building docs for docs.rs -features = [ "proptest" ] +features = [ "proptest-support", "compare" ] diff --git a/src/lib.rs b/src/lib.rs index 22f39ae7..8015e57d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,7 +127,7 @@ pub mod geometry; #[cfg(feature = "io")] pub mod io; pub mod linalg; -#[cfg(feature = "proptest")] +#[cfg(feature = "proptest-support")] pub mod proptest; #[cfg(feature = "sparse")] pub mod sparse; diff --git a/src/proptest/mod.rs b/src/proptest/mod.rs index 56c0f9cf..58c41b67 100644 --- a/src/proptest/mod.rs +++ b/src/proptest/mod.rs @@ -1,6 +1,6 @@ //! `proptest`-related features for `nalgebra` data structures. //! -//! **This module is only available when the `proptest` feature is enabled in `nalgebra`**. +//! **This module is only available when the `proptest-support` feature is enabled in `nalgebra`**. //! //! `proptest` is a library for *property-based testing*. While similar to QuickCheck, //! which may be more familiar to some users, it has a more sophisticated design that diff --git a/tests/lib.rs b/tests/lib.rs index 47386e33..29e6cbbe 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -20,7 +20,7 @@ mod core; mod geometry; mod linalg; -#[cfg(feature = "proptest")] +#[cfg(feature = "proptest-support")] mod proptest; //#[cfg(feature = "sparse")]