Skip to content

Commit 596ff01

Browse files
committed
Tweak script
features-related flags are unneeded when --no-deps is used.
1 parent e57481e commit 596ff01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/tidy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
114114
done
115115
# Make sure that public Rust crates don't contain executables.
116116
failed_files=''
117-
metadata=$(cargo metadata --format-version=1 --all-features --no-deps)
117+
metadata=$(cargo metadata --format-version=1 --no-deps)
118118
has_public_crate=''
119119
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
120120
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
@@ -314,7 +314,7 @@ if [[ -f .cspell.json ]]; then
314314
if [[ "${manifest_path}" != "Cargo.toml" ]] && ! grep -Eq '\[workspace\]' "${manifest_path}"; then
315315
continue
316316
fi
317-
metadata=$(cargo metadata --format-version=1 --all-features --no-deps --manifest-path "${manifest_path}")
317+
metadata=$(cargo metadata --format-version=1 --no-deps)
318318
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
319319
dependencies+="$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})" | jq -r '.dependencies[].name')"$'\n'
320320
done

0 commit comments

Comments
 (0)