cargo-info
Display Rust crate information
TLDR
Display information about a package on
Display information about a specific version of a package
Display additional information about a package
SYNOPSIS
cargo info [OPTIONS]
PARAMETERS
--format <FORMAT>
Output format: table (default), json, yaml, toml
--no-deps
Exclude dependencies from output
--locked
Prefer Cargo.lock versions over Cargo.toml
--workspace
Display workspace root info instead of package
-h, --help
Print help information
-V, --version
Print version information
DESCRIPTION
Cargo-info is a useful subcommand extension for Cargo, Rust's package manager. It reads the local Cargo.toml (and optionally Cargo.lock) to present structured information about the current package or workspace in a formatted table, JSON, YAML, or TOML.
Key details include package name, version, authors, description, license, repository, dependencies (runtime, dev, build), and more. Ideal for scripts, CI checks, or quick inspections without manual parsing.
Invoke it in a Cargo project root. By default, it shows a comprehensive table. Use options to customize output, exclude deps, or focus on workspace root.
Not built-in; install via cargo install cargo-info. Developed for developer convenience, it complements cargo metadata with prettier, selective output.
CAVEATS
Must be installed separately (cargo install cargo-info); only works in Cargo project directories; no support for non-Rust projects.
INSTALLATION
cargo install cargo-info
Requires Rust toolchain and Cargo.
EXAMPLE OUTPUT
Shows sections like Name, Version, Dependencies in table format.
Example: my-crate 0.1.0 with dep list.
HISTORY
Created by Embark Studios; first release 0.1.0 in 2018, latest 0.2.0 (2019). Focuses on readable Cargo.toml inspection amid growing Rust ecosystem tools.
SEE ALSO
cargo(1), cargo-metadata(1), cargo-tree(1)


