CargoScope
Replaces cargo-audit, cargo-deny, cargo-shear, and Dependabot for Cargo in one fast binary & PR bot — reads deny.toml and .github/dependabot.yml natively with 0 lines to rewrite, enforces a 7-day anti-supply-chain cooldown by default, and flags overly broad features (full).
Install · Usage · GitHub Action · Documentation
Sample FEATURE HINTS & generated update PR snippet (with 7-day cooldown)
FEATURE HINTS (1 dependency · informational) ───────────────────────────────────────────
~ tokio Cargo.toml [dependencies] features = ["full"] → try ["rt-multi-thread", "macros"]
| Package | Version | Update | Published | Checks | Links |
|---|---|---|---|---|---|
| `serde` | 1.0.219 → **1.0.228** | patch | 2026-11-10 | ✅ MSRV ≤ 1.90 · MIT OR Apache-2.0 | [diff](https://diff.rs/serde/1.0.219/1.0.228), [release notes](https://github.com/serde-rs/serde/releases) |
**Held by cooldown: 1**
- `tokio` 1.40.0 → 1.43.0: published 2d ago (cooldown 7d; override with `--cooldown-for tokio=1`)
What it checks
| Check | What you get | Instead of |
|---|---|---|
| Advisories | RustSec, plus GitHub advisories and malicious crates from OSV, ranked by whether your build is exposed: affects-you, possibly, unlikely |
cargo-audit |
| Unused dependencies | Fast multi-core static analysis (871 ms on 1,184 crates), or compiler-verified with --precise |
cargo-machete, cargo-shear |
| Feature hints | Flags overly broad features such as tokio = ["full"] or serde = ["derive"] with smaller suggestions |
cargo-features-manager |
| Policy | Licenses, bans and sources, read natively from cargoscope.toml or your existing deny.toml |
cargo-deny |
| Versions & Cooldown | Compatible/breaking updates, yanked crates, recent releases (< 72h), duplicates, maintenance, 7-day default cooldown |
cargo-outdated |
| Unsafe code | unsafe blocks, functions and impls of every dependency, counted from its sources |
cargo-geiger |
| Audits | Which versions Mozilla, Google and others reviewed with cargo-vet | cargo-vet |
| Fixes & PR bot | Reads .github/dependabot.yml directly (0 lines to rewrite), cooldown overrides, full versioning-strategy, git+/private registries, auto-rebase PRs |
Dependabot Cargo |
Nothing runs from your dependencies, and nothing touches the network unless you run cargoscope update.
Install
cargo binstall cargoscope # prebuilt binary in seconds
# or build from source:
cargo install cargoscope
Other ways to install
# macOS and Linux, prebuilt binary
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/HarpeLm/CargoScope/releases/latest/download/cargoscope-installer.sh | sh
# Homebrew
brew install HarpeLm/tap/cargoscope
# npm
npx cargoscope scan . --update
# PyPI
pip install cargoscope
# Windows, prebuilt binary
irm https://github.com/HarpeLm/CargoScope/releases/latest/download/cargoscope-installer.ps1 | iex
# Docker (use the :full tag for fix and --precise)
docker run --rm -v "$PWD:/src" -v cargoscope-cache:/cache ghcr.io/harpelm/cargoscope update .
docker run --rm -v "$PWD:/src" -v cargoscope-cache:/cache ghcr.io/harpelm/cargoscope scan .
# GitLab CI
cargoscope:
image:
name: ghcr.io/harpelm/cargoscope:0.12.0
entrypoint: [""]
script:
- cargoscope update .
- cargoscope scan . --format sarif --output cargoscope.sarif --fail-on high
Usage
cargoscope update # download RustSec, OSV and crates.io data once
cargoscope scan # the report, offline
cargoscope fix # remove unused dependencies (dry run, --apply to write)
cargoscope fix --advisories # update vulnerable crates
cargoscope fix --updates # update outdated dependencies
cargoscope why serde # why a crate is in the tree
cargoscope init --ci # create cargoscope.toml and a CI workflow
Reports also come as --format json, sarif, html or cyclonedx.
Two-minute walkthrough · All commands
GitHub Action
- uses: HarpeLm/CargoScope@v0.12.0
with:
fail-on: high
Drop-in compatible with your existing .github/dependabot.yml and deny.toml (0 lines to rewrite): scans every PR and opens Dependabot-style security & version PRs with auto-rebase.
Action documentation · GitHub Marketplace (CargoScope-Bot)
Benchmarks
| Median scan | 1,184-crate monorepo (jdx/mise) |
Advisories vs cargo-audit |
Policy vs cargo-deny |
|---|---|---|---|
22 ms (corpus) |
871 ms (--checks unused) · 3.83 s (full) |
1,376 / 1,376 (--rustsec-only) |
44 / 44 (deny.toml) |
Unused dependency detection (measured blind against rustc 1.99.1 -W unused-crate-dependencies across 1,051 judged dependencies in 9 unseen Rust repositories: starship, jj, aichat, mise, onefetch, ouch, tailspin, hgrep, diskus):
| Tool | True Positives | False Positives | Precision | Recall (of 25) |
|---|---|---|---|---|
cargoscope --precise |
25 | 0 | 100.0% | 100.0% |
cargoscope static (--show-uncertain) |
12 | 3 | 80.0% | 48.0% |
cargoscope static (default likely) |
6 | 1 | 85.7% | 24.0% |
cargo-shear |
8 | 3 | 72.7% | 32.0% |
cargo-machete |
6 | 9 (+5 fixtures) | 40.0% | 24.0% |
Methodology and corpus results
Proven in open source
Merged upstream pull requests discovered and prepared with CargoScope:
eval-exec/neomacs#811— removed 7 unused dependencies across workspace cratesAnalyseDeCircuit/oxideterm#820— removed unused dependencies across workspace cratesAnalyseDeCircuit/oxideterm#819— updatedCargo.lockfor RustSec advisoriesyyjeqhc/webcodex#1426— updatedrustls,quinn, andh2for RustSec advisoriesnyakang/nyaterm#1308— updatedrustlsandrustls-webpkifor RustSec advisoriestracel-ai/burn-onnx#707— fixedRUSTSEC-2026-0538and Rust CI lints
Documentation
Commands · GitHub Action · Policy · JSON report · Compatibility · Security · Changelog
Contributions and false-positive reports are welcome: CONTRIBUTING.md · feedback issue
MIT License
Metadata
Release files for cargoscope 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cargoscope-0.12.0.tar.gz | 359.3 kB | With provenance | Details for cargoscope-0.12.0.tar.gz |
Built distributions (wheels)
Total release size: 38.8 MB
Release files / cargoscope-0.12.0.tar.gz
| Download URL | cargoscope-0.12.0.tar.gz |
|---|---|
| Size | 359.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d952819e201753eb3ef32b5c3231f07b6d871fd2900868abdc9f1b81fef7122
|
|
BLAKE2b-256 checksum How to use checksums |
652f56cf741daa351309c8efa0e78d88a3202be33c5189e5889ebff19ef082c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-win_amd64.whl
| Download URL | cargoscope-0.12.0-py3-none-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dadbc00563e9df0462c28364e7954fbb19be2a1045f5bc817d220510338a907d
|
|
BLAKE2b-256 checksum How to use checksums |
2448f14881d88412270c5d53d2213903032f7c7a0889a34c917e302528998fd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | cargoscope-0.12.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
81658005858f0521719312b8cc843bc1729f2d2002133092c85befef73cc6f4c
|
|
BLAKE2b-256 checksum How to use checksums |
26c2892fce6241bcda9cabe9b4951c4e57e39676d8fced5d6bd2cc74ae36ebf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | cargoscope-0.12.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 6.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a79e64a14caf2c6924b93382ec9e608c24e018ca698d6bf0eb98e8c4c24775ce
|
|
BLAKE2b-256 checksum How to use checksums |
5a3a29614112275134efb497fa098eb2a5389e6340774f46fe956bcc097ac90c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | cargoscope-0.12.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
1e89f8ce2e187f7fec1c36f5a5d81af24f165648938a84951d2d52333ebbffa4
|
|
BLAKE2b-256 checksum How to use checksums |
df09c3dd984a6d51a0a8007c16e70c318febc34bf18bb144a77ad2a46801dfbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-macosx_11_0_arm64.whl
| Download URL | cargoscope-0.12.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
16e6854af31d6ed4da9d3077b4acb1f18f3c882fd9fdc13cd470e5a91edf0fa1
|
|
BLAKE2b-256 checksum How to use checksums |
395447c80a7f51b3866ab77c5ab3393b6c65e7b166a035087c6135c2f313b2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / cargoscope-0.12.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | cargoscope-0.12.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.3 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
57eb9964774d634750b0ca6b03796e16746c7407f747e2a50c1688fdc6bad826
|
|
BLAKE2b-256 checksum How to use checksums |
7dd6e51cc1f1c2fc3b2ca94b1c4ad596ec147673ba9de439c637e00d2dcfc9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for cargoscope 0.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for cargoscope-0.12.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.