r/rust • • 39m ago

🙋 seeking help & advice Building a lightweight CLI to detect "dead" or risky dependencies (starting with Rust/Cargo). What actually matters to you?

Hi everyone,

I’m planning to build a small, "soluble" (lightweight, zero-config, easy to run and forget) CLI tool tentatively called Dependency Ghost Scanner (D.G.S)

The goal is to scan a project’s dependencies (starting with Rust Cargo, later expanding to Python pip) and flag packages that might be a risk to maintain.

Before I write any code or lock in a specification, I want to make sure I’m solving a real problem and not just building a solution in search of one. I’d love your honest feedback on a few key design choices:

  1. What makes a dependency "dead" or "risky" to you? (Pick all that apply or suggest others)

a. No updates/releases for > 1-2 years.

b. Known unpatched CVEs (security vulnerabilities).

c. The maintainer has explicitly abandoned it or is unresponsive.

d. A clearly superior, more modern alternative exists (e.g., ecosystem shifted).

e. Incompatible with the latest compiler/language version.

f. Other.

2. How would you actually want to consume this information?

a. A simple, color-coded output directly in the terminal (Red/Orange/Green).

b. A machine-readable format (JSON) to integrate into CI/CD pipelines (e.g., fail the build if a "red" dependency is found).

c. A standalone HTML report with a visual graph of the dependency tree.

d.Other

3. How should it fetch data?

a. It’s fine if it queries the registry API (crates.io / PyPI) and requires an internet connection.

b. It MUST work 100% offline, relying only on the local Cargo.lock / requirements.txt metadata.

c. Hybrid: Try online first, gracefully fallback to offline heuristics.

The Catch:

I want this tool to be truly "soluble": no accounts, no heavy installation, no persistent background services. Just run it, get the insight, and move on.

My questions to you:

  1. Is this a tool you would actually use, or does an existing tool (like cargo-audit, dependabot, safety) already solve this well enough?
  2. What would be the one feature that would make you star this repo on GitHub?

Thanks in advance for your time and brutal honesty!

0 Upvotes

11 comments sorted by

8

u/Sabageti 37m ago

Cargo audit ?

1

u/Former-Yam-5214 34m ago

cargo-audit covers the CVE angle but doesn't really flag unmaintained crates or ecosystem shifts, that's the gap I'd want filled.

6

u/Sabageti 32m ago

Unmaintained crates are handled.

1

u/J0BY_ 17m ago

Exact ! Ça me fait déjà une bonne piste à creuser. Merci

2

u/waterkip 34m ago

grype is a thing already?

0

u/J0BY_ 18m ago

Oui grype existe mais il se concentre surtout sur la sécurité (CVE) du moins c'est l'usage que j'en fais Mon but est différent dans la mesure où j'aimerais pouvoir détecter les dépendances "mortes" qui pour moi sont la mise à jour et l'abandon de projet par les mainteneurs. Cest dans ce sens que je me demandais si j'étais possiblement le seul à avoir ces soucis et sinon quels seraient les vôtres ?

1

u/chicagoderp 11m ago

You’re running under the assumption that for a library to be good, it must constantly be worked on. This is not the case.

1

u/J0BY_ 2m ago

Je suis bien d'accord. Mais il y a une différence entre "stable" et "abandonnée". Je ne veux pas flagger ce qui fonctionne déjà mais d'alerter sur les risques d'incompatibilité future avec le compilateur, de failles de sécurité non patchees ou dépendances transitive cassées.

1

u/fersegv 19m ago

b is already covered by cargo-audit/cargo-deny. what's missing is spotting abandonment early (archived repo, no commits in 2y, unanswered prs) and telling me which of my direct deps pulls in the risky one. that last part would get my star

1

u/J0BY_ 9m ago

Bien vu pour cargo-deny ! Je note surtout ton dernier point sur la traçabilite (qui utilise quoi ?) Et faire en sorte que l'outil me dise que "ma dépendance directe A tire la crate morte B" ça pourrait effectivement etre très très utile, ( surtout pour du refactoring ) Je vais intégrer cette fonction de chemin de dépendance dans le MVP

1

u/fersegv 4m ago

nice. if it helps, cargo metadata already gives you the full graph so you don't have to parse cargo.lock yourself x)