rust-ndarray / ndarray

ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
https://docs.rs/ndarray/
Apache License 2.0
3.62k stars 307 forks source link

Tests and CI/CD for no_std support with approx #1447

Closed akern40 closed 1 month ago

akern40 commented 1 month ago

Just days after ndarray introduced no_std, approx did the same. As a result, users can use both no_std and approx together via --no-default-features --features approx. Currently, our CI/CD runs one test batch for --no-default-features and one test batch for --features docs, which includes approx; as a result, it misses a number of tests which are configured with feature = approx but not configured with feature = std. Examples include:

These should be pretty simple fixes: add the appropriate cfgs and alter the CI/CD to include a test run that has --no-default-features with approx.