diff --git a/script/rust/cargo_hakari_generate.sh b/script/rust/cargo_hakari_generate.sh new file mode 100755 index 0000000000..ab94063f07 --- /dev/null +++ b/script/rust/cargo_hakari_generate.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euxo pipefail + +echo 'Updating and checking hakari (dependency graph build optimization)' + +cargo hakari generate +cargo hakari manage-deps +cargo hakari verify + +# TODO: Ask for user input before applying some automated heuristics + +echo 'Done.' diff --git a/script/rust/execute_dependency_fix.sh b/script/rust/cargo_udeps.sh similarity index 67% rename from script/rust/execute_dependency_fix.sh rename to script/rust/cargo_udeps.sh index 9554dc3c4d..918a505a79 100755 --- a/script/rust/execute_dependency_fix.sh +++ b/script/rust/cargo_udeps.sh @@ -2,12 +2,6 @@ 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 @@ -18,4 +12,3 @@ cargo +nightly udeps --all-targets # TODO: Ask for user input before applying some automated heuristics echo 'Done.' - diff --git a/script/rust/update_actix.sh b/script/rust/cargo_update_actix.sh similarity index 99% rename from script/rust/update_actix.sh rename to script/rust/cargo_update_actix.sh index e3aa9036b9..675b319d6a 100755 --- a/script/rust/update_actix.sh +++ b/script/rust/cargo_update_actix.sh @@ -33,4 +33,3 @@ cargo update \ actix-web \ actix-web-actors \ actix-web-lab - diff --git a/script/rust/codegen_database.sh b/script/rust/sqlx_codegen_database.sh similarity index 99% rename from script/rust/codegen_database.sh rename to script/rust/sqlx_codegen_database.sh index b45b45b857..d111def0a4 100755 --- a/script/rust/codegen_database.sh +++ b/script/rust/sqlx_codegen_database.sh @@ -40,5 +40,3 @@ build_shared_mysql_database_library #build_shared_sqlite_database_library echo 'done' - -