Skip to main content

CargoScope

One offline report for the dependencies of a Rust project.

Crates.io PyPI CI License: MIT

Install · Usage · GitHub Action · Documentation


cargoscope scan in a terminal

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 Static analysis, or checked by the compiler with --precise cargo-machete, cargo-shear
Policy Licenses, bans and sources, read from cargoscope.toml or your deny.toml cargo-deny
Versions Compatible and breaking updates, yanked crates, recent releases, duplicates, maintenance 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 Dry-run edits to Cargo.toml and Cargo.lock, or pull requests from the Action Dependabot

Nothing runs from your dependencies, and nothing touches the network unless you run cargoscope update.

Install

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.11.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.11.0
  with:
    fail-on: high

Scans every pull request, and can open security and update pull requests on a schedule.
Action documentation

Benchmarks

Median offline scan Advisories vs cargo-audit Policy vs cargo-deny Unused precision
22 ms 1,376 / 1,376 (--rustsec-only) 44 / 44 100% with --precise

Methodology and raw results

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

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.11.0
File Size Uploaded Provenance Actions
cargoscope-0.11.0.tar.gz 324.9 kB With provenance Details for cargoscope-0.11.0.tar.gz

Built distributions (wheels)

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

Total release size: 38.0 MB

Release files / cargoscope-0.11.0.tar.gz

Download URL cargoscope-0.11.0.tar.gz
Size 324.9 kB
Tags Source
SHA-256 checksum
How to use checksums
95f3581f749d6d52aa05206f7a5c2c68f8bd07a4f8d55da7b944e3a0ca0e4151
BLAKE2b-256 checksum
How to use checksums
c0cf979ff624606394b6742e623821056a2148f0c333d668bf349ff13dd0a076
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 log

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

Download URL cargoscope-0.11.0-py3-none-win_amd64.whl
Size 5.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
31c3fb82a0a5018ee8955498e218a900a8676154e4a62f069c26864c00ed6d86
BLAKE2b-256 checksum
How to use checksums
0b74afb6a67952e2fb5acba1c8cc770c034510e2a3f1d52d57933b84af09d513
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 log

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

Download URL cargoscope-0.11.0-py3-none-musllinux_1_2_x86_64.whl
Size 6.7 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d281ad9fc2b6816b34c1e975c351f7e76534e5f693be1434a2da87f6847133db
BLAKE2b-256 checksum
How to use checksums
888da354850dfdf5d063948eb2b4fc37c9b504c86819ff04c8e8268202f904b5
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 log

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

Download URL cargoscope-0.11.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4521d3d7998d0c7cb18e598bfd349d3542b1c34c40cb0e63dde46bba5b342a67
BLAKE2b-256 checksum
How to use checksums
b30bb83110bc3d33ba84bde491eb2b89c9417364d21300cd68668bc102602ae1
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 log

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

Download URL cargoscope-0.11.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
3994eabbdc80f97e6d8030c35b76852d811efd2ef6681cabf52f0aabf61eb093
BLAKE2b-256 checksum
How to use checksums
cd3b374e549b8a4fcdbde7d4a828b5733cceeb3aecfa02c6a4b54bf7c08cf611
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 log

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

Download URL cargoscope-0.11.0-py3-none-macosx_11_0_arm64.whl
Size 6.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9fd2bd9354f7540f511276667c17b67ebe4d230e593bcb5c3daff29638b4cc37
BLAKE2b-256 checksum
How to use checksums
0aad87b706a60118fb1eba2bd4fabad2690bd9f7291dfa23d70252ce0452639f
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 log

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

Download URL cargoscope-0.11.0-py3-none-macosx_10_12_x86_64.whl
Size 6.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a48a155f7a06fa8b21ce7f8e331b09a15bb342264cf40898c5c07d38c3b9f2f6
BLAKE2b-256 checksum
How to use checksums
42115d068e92b29b6a05df0a39f3ea7d0d7cc800574cf5893e85326d159e353e
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 log

Security for cargoscope 0.11.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.

Select from 7 files

Attestation for cargoscope-0.11.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 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