From 3a1056701895b35de8a6a14f40167d57d4e919f4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 19 Oct 2023 04:25:54 +0900 Subject: [PATCH] Tweak scripts features-related flags are unneeded when --no-deps is used. --- tools/tidy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tidy.sh b/tools/tidy.sh index efd20897..7e8ce5ae 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -114,7 +114,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then done # Make sure that public Rust crates don't contain executables. failed_files='' - metadata=$(cargo metadata --format-version=1 --all-features --no-deps) + metadata=$(cargo metadata --format-version=1 --no-deps) has_public_crate='' for id in $(jq <<<"${metadata}" '.workspace_members[]'); do pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})") @@ -314,7 +314,7 @@ if [[ -f .cspell.json ]]; then if [[ "${manifest_path}" != "Cargo.toml" ]] && ! grep -Eq '\[workspace\]' "${manifest_path}"; then continue fi - metadata=$(cargo metadata --format-version=1 --all-features --no-deps --manifest-path "${manifest_path}") + metadata=$(cargo metadata --format-version=1 --no-deps --manifest-path "${manifest_path}") for id in $(jq <<<"${metadata}" '.workspace_members[]'); do dependencies+="$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})" | jq -r '.dependencies[].name')"$'\n' done