set -e
echo "### Checking for duplicate dependency versions in the normal dependency graph with all features enabled"
cargo tree -d --edges normal --all-features
echo "### Checking whether the features are properly feature-gated"
! cargo tree -e no-dev | grep serde
echo "### Checking feature powerset"
cargo hack check --feature-powerset --exclude-all-features