mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-25 02:29:37 +00:00
22 lines
437 B
Bash
Executable File
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.'
|
|
|