Files
artcraft/script/execute_dependency_fix.sh
T
2025-02-11 21:58:04 -05:00

22 lines
437 B
Bash
Executable File

#!/bin/bash
set -euxo pipefail
echo 'Updating and checking hakari (dependency graph build optimization)'
cargo hakari generate
cargo hakari manage-deps
cargo hakari verify
echo 'Looking for unused dependencies'
# https://github.com/est31/cargo-udeps
# https://stackoverflow.com/a/72082679
# Needs nightly to run
cargo +nightly udeps --all-targets
# TODO: Ask for user input before applying some automated heuristics
echo 'Done.'