5 # cd to the directory containing this crate's Cargo.toml so that we don't need
6 # to pass --manifest-path to every `cargo` command.
9 # This is a convenience script for running a broad swath of the syntax tests.
10 echo "===== DEFAULT FEATURES ==="
24 for f
in "${features[@]}"; do
25 echo "=== FEATURE: $f ==="
26 # We only run library tests because I couldn't figure out how to easily
27 # make doc tests run in 'no_std' mode. In particular, without the Error
28 # trait, using '?' in doc tests seems tricky.
29 cargo
test --no-default-features --lib --features "$f"