Skip to main content

CargoScope Telemetry HUD scanning a Rust project

CargoScope is a 100% Rust CLI for Rust/Cargo projects that replaces five separate dependency tools with one fast offline report: resolved inventory, RustSec advisories ranked by relevance (affects-you / possibly / unlikely), static and compiler-verified unused dependencies, deny.toml license/ban/source policies, SemVer updates, maintenance health, and automated fixes or PRs.

Benchmarks

Median offline scan Advisory parity Policy parity Unused-dependency precision
22 ms 1,376 / 1,376 44 / 44 100% (--precise) / 98.9% (static)
Across 72 compiled repos (0 code exec) Identical to cargo-audit (74 unseen repos) Identical to cargo-deny (deny.toml) 35 blind --precise repos / 80-repo rustc judge

Full methodology, exact commits, and raw outputs: tests/corpus/README.md & precise-benchmark.md.

Quick Start

# 1. Instant zero-network scan (inventory + unused dependencies)
cargoscope scan . --checks inventory,unused

# 2. Full scan: download RustSec + crates.io metadata once, then inspect offline
cargoscope scan . --update --fast

# 3. Preview fixes without modifying any file (pass --apply to write)
cargoscope fix .                 # remove likely-unused deps & clean [features]
cargoscope fix --advisories .    # bump Cargo.lock & matching workspace manifests
cargoscope fix --updates .       # Dependabot-style compatible/breaking upgrades

# 4. Bootstrap cargoscope.toml (or migrate deny.toml) and GitHub CI workflow
cargoscope init --ci

New here? Follow the two-minute walkthrough or read the full command reference.

Install

# macOS / Linux prebuilt binary
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/HarpeLm/CargoScope/releases/latest/download/cargoscope-installer.sh | sh

# Homebrew (macOS / Linux)
brew install HarpeLm/tap/cargoscope

# crates.io
cargo install cargoscope

# npm (downloads the native binary, no JS engine logic)
npx cargoscope scan . --update

PyPI (pip install cargoscope / uvx cargoscope scan .): the Trusted Publisher workflow (pypi.yml) is configured and ships Python wheels starting with v0.9.0.

Windows PowerShell, Docker (ghcr.io/harpelm/cargoscope), and GitLab CI
# Windows prebuilt binary (PowerShell)
irm https://github.com/HarpeLm/CargoScope/releases/latest/download/cargoscope-installer.ps1 | iex
# Docker container (linux/amd64 and linux/arm64; use `:full` when running `fix` or `--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.9.1
    entrypoint: [""]
  script:
    - cargoscope update .
    - cargoscope scan . --format sarif --output cargoscope.sarif --fail-on high

What One Scan Replaces

Capability Replaces What CargoScope adds
Advisories & binary audit cargo-audit Matches cargo-audit on 1,376 advisories, ranks relevance (affects-you / possibly / unlikely), adds --ignore-unlikely, CycloneDX VEX, and audit-bin
Unused dependencies cargo-machete, cargo-shear Lexer-based static analysis with per-finding evidence, opt-in rustc --precise mode, [features] & [workspace.dependencies] cleanup via fix
Licenses, bans & sources cargo-deny Reads deny.toml natively (cargoscope init also migrates it), checks SPDX/license files, feature & build-script bans, and [graph] targets (44/44 parity)
Versions, yanked & weights cargo-outdated, cargo-tree Splits compatible vs breaking updates, flags archived/stale/single-owner crates, duplicate versions, and pruning weights (cargoscope why)
PR automation & CI Dependabot Opens security & SemVer PRs with MSRV/license diffs, changelogs, /cargoscope rebase | recreate | ignore, offline HTML, SARIF, and aggregate

How It Works

CargoScope pipeline and crate architecture

  • Local & offline by default: scan, why, compare, aggregate, and audit-bin make zero network requests unless you run cargoscope update (or scan --update).
  • No code execution: manifests, lockfiles, policies, and .rs tokens are read directly — build scripts and proc macros never run unless you opt into --precise.
  • No silent writes: nothing on disk changes except when you explicitly pass cargoscope fix --apply or cargoscope init.
  • Evidence first: every finding shows its dependency chain, provenance, and cache date.
  • Memory safe (unsafe_code = "forbid"): enforced workspace-wide with hardened symlink, depth, and file-size bounds (SECURITY.md).

Visual Outputs & Automated PRs

CargoScope offline HTML report
Self-contained HTML, SARIF & CycloneDX
Export one offline report (--format html), GitHub Code Scanning results (--format sarif), CycloneDX 1.5 VEX SBOMs (--format cyclonedx), or merge multiple repos via cargoscope aggregate.
CargoScope-Bot pull request preview
Automated PRs via CargoScope-Bot
Schedule security (fix --advisories) and SemVer update PRs with MSRV/license checks, diff.rs links, changelogs, Cargo refusal reasons, and /cargoscope rebase | ignore commands.

GitHub Action

Drop CargoScope-Bot into any CI workflow (downloads the prebuilt binary, caches RustSec/crates.io data, and comments PR diffs when permissions allow):

      - uses: HarpeLm/CargoScope@v0.9.1
        with:
          fail-on: high
          upload-sarif: false

For full SARIF uploads, scheduled security PRs, and Dependabot-style update PRs, see docs/github-action.md.

Documentation

Guide Covers
docs/try-it.md 2-minute walkthrough on a sample project
docs/commands.md Full CLI reference (scan, update & proxies, --precise, fix, why, audit-bin, compare, aggregate, init)
docs/github-action.md CargoScope-Bot CI workflows, security PRs, Dependabot-style [updates], and /cargoscope commands
docs/policy.md Policy rules (cargoscope.toml, deny.toml & .cargo/audit.toml), licenses, [bans.build], and [graph] scoping
docs/json-report.md Versioned JSON output (format_version: 1) and JSON schema
docs/compatibility.md 1.x stability contract (CLI, exit codes 0/1/2, JSON/SARIF/CycloneDX), SemVer, and MSRV (1.90+)
SECURITY.md Vulnerability reporting and CargoScope's offline/no-execution threat model
tests/corpus/README.md Benchmarks against rustc, cargo-audit, cargo-deny, cargo-shear, and cargo-machete
SPEC.md & CHANGELOG.md Full specification, roadmap (0.1–1.0), and release history

Contributing & License

Contributions and false-positive reports are welcome — see CONTRIBUTING.md or open a note on the feedback issue.

cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings

Licensed under the MIT License.

Metadata

Release files for cargoscope 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cargoscope 0.9.1
File Size Uploaded Provenance Actions
cargoscope-0.9.1.tar.gz 290.2 kB With provenance Details for cargoscope-0.9.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cargoscope 0.9.1
File Actions
cargoscope-0.9.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cargoscope-0.9.1-py3-none-win_amd64.whl
cargoscope-0.9.1-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for cargoscope-0.9.1-py3-none-musllinux_1_2_x86_64.whl
cargoscope-0.9.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for cargoscope-0.9.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cargoscope-0.9.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for cargoscope-0.9.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cargoscope-0.9.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for cargoscope-0.9.1-py3-none-macosx_11_0_arm64.whl
cargoscope-0.9.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for cargoscope-0.9.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 36.4 MB

Release files / cargoscope-0.9.1.tar.gz

Download URL cargoscope-0.9.1.tar.gz
Size 290.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2db03ab2c6a514117fb6e3d9fde5db0e628a05d88e8e55223ae622667f5eafe4
BLAKE2b-256 checksum
How to use checksums
573fcab43c21a9d40dfc08ad799ba7c8550c2aa5561ebbb34ae6e02fed8cf5cd
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-win_amd64.whl

Download URL cargoscope-0.9.1-py3-none-win_amd64.whl
Size 5.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
cc64e5fabd5e0c6516671fbd4ad4e8bc26d6d16fc96186ed7430e71bd520dbed
BLAKE2b-256 checksum
How to use checksums
bca4e53c7ba385a476e1e09ccd9ae92e1cab40cd2eb0c46ef45e744225d6b646
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-musllinux_1_2_x86_64.whl

Download URL cargoscope-0.9.1-py3-none-musllinux_1_2_x86_64.whl
Size 6.4 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
854f99d91324a88b429878b477ebe9ae27f2f2adf37c0ccf7e125b6b8a0e0f9e
BLAKE2b-256 checksum
How to use checksums
36be426047a1dfb6b0e7b041b037c36da62c05c97d69e2682f8f6298e978015e
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cargoscope-0.9.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
26d3c24af7289387817e0e67238ab2d0f0bc1009eac35b3ff0d1cb8fe72b755f
BLAKE2b-256 checksum
How to use checksums
b0a01165b7ba9e1b184599d24a86d3a1ee4df8f72b35b65830aa16bb7b073498
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cargoscope-0.9.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fbfded44000d67dd228f56db6f2b382a3da679a8d7def2e80dab24fd44c34322
BLAKE2b-256 checksum
How to use checksums
787c746053e86147fd1413a11f2ea073fbe7a147e60405a2374b935a09a298a1
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-macosx_11_0_arm64.whl

Download URL cargoscope-0.9.1-py3-none-macosx_11_0_arm64.whl
Size 5.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f62163e67da491d86ae66a0970a638831d9f727c1e89d1bb74657617c9ae2ff6
BLAKE2b-256 checksum
How to use checksums
81e627ed0d90eae697037406075e3e7512614f664e29aa727ae95f38a9388889
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 19, 2026.

Transparency log

Release files / cargoscope-0.9.1-py3-none-macosx_10_12_x86_64.whl

Download URL cargoscope-0.9.1-py3-none-macosx_10_12_x86_64.whl
Size 5.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2108ff0352df425c9c4ddd905567ba5fdd6bd852b975dcd75089594234e9732d
BLAKE2b-256 checksum
How to use checksums
a6b9822bfc128e9fcc1b3df7698a4cd6ef78b4a8cf53f7d56b4bb6ac011aef41
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 19, 2026.

Transparency log

Security for cargoscope 0.9.1

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.

Select from 7 files

Attestation for cargoscope-0.9.1.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 19, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page