#!/bin/bash # Remove non-existent or problematic dependencies echo "Fixing non-existent dependencies..." # List of known non-existent crates to remove NON_EXISTENT=( "byzantine-generals" "medical-imaging-toolkit" "approx-float" ) for crate in "${NON_EXISTENT[@]}"; do echo "Removing references to: $crate" find crates -name "Cargo.toml" -exec sed -i "/$crate/d" {} \; done # Fix features that depend on removed crates echo "Fixing feature dependencies..." find crates -name "Cargo.toml" -exec sed -i 's/, "medical-imaging-toolkit"//g' {} \; find crates -name "Cargo.toml" -exec sed -i 's/"medical-imaging-toolkit", //g' {} \; echo "Dependency fixes complete!"