rayon parallel feature w/o nightly features on old compilers

This commit is contained in:
geo-ant 2022-10-25 08:47:57 +02:00 committed by Sébastien Crozet
parent 6591f2819a
commit 701d260fa6
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: test
run: cargo test --features arbitrary,rand,serde-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests,rkyv-safe-deser,rayon;
run: cargo test --features arbitrary,rand,serde-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests,rkyv-safe-deser,rayon-par;
test-nalgebra-glm:
runs-on: ubuntu-latest
steps:

View File

@ -33,7 +33,7 @@ libm = [ "simba/libm" ]
libm-force = [ "simba/libm_force" ]
macros = [ "nalgebra-macros" ]
cuda = [ "cust_core", "simba/cuda" ]
rayon = [ "std", "dep:rayon" ]
rayon-par = [ "std", "rayon" ]
# Conversion
convert-mint = [ "mint" ]

View File

@ -10,8 +10,8 @@ compile_error!(
);
// make sure to test the parallel iterators for all builds that do not require no_std
#[cfg(all(feature = "std", not(feature = "rayon")))]
compile_error!("Please additionally enable the `rayon` feature to compile and run the tests");
#[cfg(all(feature = "std", not(feature = "rayon-par")))]
compile_error!("Please additionally enable the `rayon-par` feature to compile and run the tests");
#[cfg(all(feature = "debug", feature = "compare", feature = "rand"))]
#[macro_use]