@@ -176,33 +176,6 @@ clippy-apply-fix-unix:
176176clippy-apply-fix-windows :
177177 cargo clippy --target x86 _64 -pc-windows-msvc --fix --all
178178
179- # Generate and test all possible feature combinations for a package
180- clippy-feature-combinations package target = default-target :
181- #!/usr/bin/env bash
182- set -euo pipefail
183-
184- # Get all features for the package
185- features=$(cargo metadata --format-version 1 --no-deps | jq -r ' .packages[] | select(.name == "{{ package}} ") | .features | keys[]' | grep -v default || true )
186-
187- echo " Testing {{ package}} with no features..."
188- cargo clippy -p {{ package}} --all-targets --no-default-features --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings
189-
190- echo " Testing {{ package}} with default features..."
191- cargo clippy -p {{ package}} --all-targets --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings
192-
193- # Test each feature individually
194- for feature in $features; do
195- echo " Testing {{ package}} with feature: $feature"
196- cargo clippy -p {{ package}} --all-targets --no-default-features --features " $feature" --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings || echo " Feature $feature failed for {{ package}} "
197- done
198-
199- # Test all features together
200- if [ -n " $features" ]; then
201- all_features=$(echo $features | tr ' \n' ' ,' | sed ' s/,$//' )
202- echo " Testing {{ package}} with all features: $all_features"
203- cargo clippy -p {{ package}} --all-targets --no-default-features --features " $all_features" --profile={{ if target == " debug" { " dev" } else { target } }} -- -D warnings || echo " All features failed for {{ package}} "
204- fi
205-
206179# Run clippy with feature combinations for all packages
207180clippy-exhaustive target = default-target : (witguest-wit )
208181 ./ hack/ clippy-package-features.sh hyperlight-host {{ target }}
0 commit comments