LinuxCommandLibrary

cargo-report

Generate and view cargo-related reports

TLDR

Display a report of crates which will eventually stop compiling

$ cargo report future-incompatibilities
copy

Display a report with the specified Cargo-generated ID
$ cargo report future-incompatibilities --id [id]
copy

Display a report for the specified package
$ cargo report future-incompatibilities [[-p|--package]] [package]
copy

SYNOPSIS

cargo-report [OPTIONS] [PATH]

PARAMETERS

--format
    Output format (e.g., json, html, plain)

--output
    Write report to specified file

--dependencies
    Include dependency tree analysis

--verbose
    Enable detailed logging

-h, --help
    Print help information

DESCRIPTION

The cargo-report command is not a built-in subcommand of Cargo, the Rust package manager, nor a standard Linux utility. It likely refers to a third-party crate, plugin, or custom script within the Rust ecosystem used for generating detailed reports on Cargo projects. Common use cases include analyzing dependencies, build times, binary sizes, security vulnerabilities, or workspace metadata.

Such tools often parse Cargo.lock, Cargo.toml, or build outputs to produce human-readable summaries, JSON exports, or HTML reports. Examples include dependency graphs, unused deps detection, or coverage reports. Install via cargo install cargo-report if it's a published crate, though no official one matches exactly. Check crates.io or project-specific docs for variants like cargo-audit or cargo-bloat. Usage requires Rust/Cargo installed.

CAVEATS

Not a standard command; requires specific crate installation. May conflict with Cargo workspaces or private registries. Always verify source for security.

INSTALLATION

Typically cargo install cargo-report from crates.io if available; otherwise, build from GitHub repo.

EXAMPLES

cargo-report --format json > report.json
cargo-report --dependencies .

HISTORY

Emerged in Rust ecosystem post-2018 as community tools for Cargo introspection. No canonical cargo-report; inspired by needs for Cargo 0.20+ metadata APIs. Usage grew with complex workspaces in 2020s.

SEE ALSO

cargo(1), cargo-tree(1), cargo-metadata(1), cargo-audit(1), cargo-bloat(1)

Copied to clipboard