set -e
cd "$(dirname "$0")"
echo "===== DEFAULT FEATURES ====="
cargo test
features=(
"std"
"alloc"
"alloc tzdb-bundle-always"
"std tzdb-bundle-platform tzdb-bundle-always"
"std tzdb-bundle-platform tzdb-bundle-always tzdb-zoneinfo"
"std tzdb-bundle-platform tzdb-zoneinfo"
"std tzdb-bundle-always tzdb-zoneinfo"
"std tzdb-bundle-always logging"
"std tzdb-bundle-always serde"
)
for f in "${features[@]}"; do
echo "===== FEATURE: $f ====="
cargo build --no-default-features --features "$f"
cargo test --lib --no-default-features --features "$f"
cargo test --test integration --no-default-features --features "$f"
done