Rust reimplementation of vulture (dead code finder) - output-identical to vulture 2.13
Maintained. Last release 5 months ago. Weaker on release cadence.
pip install vulture-rsvulture-rs
A Rust reimplementation of
vulture (the Python
dead-code finder), built on the
ruff parser for performance.
Versioned independently; the upstream parity target (currently
vulture 2.13) is stated here, in the package description, and in
the CHANGELOG (a dated entry per release, enforced at release
time).
Drop-in compatible: the binary is named vulture, accepts the same
CLI, and produces byte-identical output — tools that shell out to
vulture via PATH pick it up unchanged (the one visible
difference: --version reports this package's own version, not
2.13).
Install
pip install vulture-rs # ships the `vulture` binary
Wheels for linux x86_64/aarch64 and macOS arm64, published via the
manually-dispatched Release to PyPI workflow (wheels only, no
sdist); every wheel is smoke-tested before it ships.
Results
A large production codebase (6,553 files), 8 cores, median of 5:
| tool | wall time | speedup |
|---|---|---|
| Python vulture 2.13 | 14.31 s | 1x |
| vulture-rs (8 threads) | 0.43 s | 33x |
| vulture-rs (1 thread) | 1.06 s | 13.5x |
Peak memory is comparable (~100 MiB).
Parity
Output is byte-identical (stdout + exit codes) to vulture==2.13:
- on the 6,553-file production codebase above — 2,687 findings, zero diff — across assorted flag combinations;
- across
tests/differential.sh: an edge-case corpus (noqa quirks, whitelist masking, elif chains, encodings incl. latin-1/BOM/CRLF, unreachable code, invisible bindings, decorated defs) times a 12-entry flag matrix; - on two alien corpora: CPython 3.12's stdlib (2,621 findings,
byte-identical incl. normalized stderr) and a 22,286-file
site-packagescorpus (58k findings, 137s -> 3.4s, 41x). There, 144 of 58,008 stdout lines and 11 stderr lines differ - every one triaged to registered deviations (D1 type comments, D16 CPythonSyntaxWarningchatter), zero parity bugs; - on six popular open-source repos (requests, flask, click, rich, celery, django; 3,736 files, 25-54x) — byte-identical.