| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Set of features to build & test. |
| 6 | FEATURE_SETS=( |
| 7 | # std |
| 8 | "std" |
| 9 | "std approx bytemuck mint rand serde debug-glam-assert transform-types" |
| 10 | "std scalar-math approx bytemuck mint rand serde debug-glam-assert transform-types" |
| 11 | # no_std |
| 12 | "libm" |
| 13 | "libm scalar-math approx bytemuck mint rand serde debug-glam-assert transform-types" |
| 14 | ) |
| 15 | |
| 16 | for features in "${FEATURE_SETS[@]}" |
| 17 | do |
| 18 | : |
| 19 | cargo build --tests --no-default-features --features="$features" |
| 20 | cargo test --no-default-features --features="$features" |
| 21 | done |
| 22 | |
| 23 | pushd test_no_std && cargo check |