jj/.github/scripts/count-cargo-lock-packages
Ilya Grigoriev 91e2ce69dc github: show counts and allow offline counting for dependency-counting check
Follow-up to b1bb5e1

This creates a `.github/scripts/count-cargo-lock-packages` script to
count packages with our methodology that one can run outside CI.

I also renamed the check so that it's clearer what it does.
2025-04-05 02:21:17 +00:00

5 lines
205 B
Bash
Executable file

#!/bin/sh
# This is extremely approximate because the Cargo.lock file contains
# dependencies for all features and platforms, but it helps us keep an eye on
# things.
grep -c '^\[\[package\]\]' Cargo.lock