From 06bb8290ab37365218f03799350b0b5b59211352 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 21 Aug 2024 16:39:39 +1000 Subject: [PATCH] WIP: Set CRATES mechanically Use shell to set the `CRATES` env var used by `run_task.sh`. This patch needs a PR to merge into maintainer tools before it can be used, we then need to set the commit hash in `.github/workflows/rust.yml`. https://github.com/rust-bitcoin/rust-bitcoin-maintainer-tools/pull/11 --- contrib/crates.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/crates.sh b/contrib/crates.sh index c3d605eeea..b698250b15 100644 --- a/contrib/crates.sh +++ b/contrib/crates.sh @@ -1,8 +1,9 @@ +# Sourced by `rust-bitcoin-maintainer-tools/ci/run_task.sh`. +# # No shebang, this file should not be executed. # shellcheck disable=SC2148 # # disable verify unused vars, despite the fact that they are used when sourced # shellcheck disable=SC2034 -# Crates in this workspace to test (note "fuzz" is only built not tested). -CRATES=("addresses" "base58" "bitcoin" "hashes" "internals" "io" "units" "fuzz") +CRATES="$(cargo metadata --no-deps --format-version 1 | jq -j -r '.packages | map(.manifest_path | rtrimstr("/Cargo.toml") | ltrimstr("'"$PWD"'/")) | join(" ")')"