cargo-info --- Display information about a package in the registry. Default registry is crates.io
cargo info [options] spec
This command displays information about a package in the registry. It fetches data from the package's Cargo.toml file and presents it in a human-readable format.
{{#option “spec” }}
Fetch information about the specified package. The spec can be a package ID, see {{man “cargo-pkgid” 1}} for the SPEC format. If the specified package is part of the current workspace, information from the local Cargo.toml file will be displayed. If the Cargo.lock file does not exist, it will be created. If no version is specified, the appropriate version will be selected based on the Minimum Supported Rust Version (MSRV).
{{/option}} {{> options-index }} {{> options-registry }} {{/options}}
{} {{> options-display }} {{/options}}
{} {{> options-locked }} {{/options}}
{{> section-options-common }}
{{> section-environment }}
{{> section-exit-status }}
Inspect the serde package from crates.io:
cargo info serde
Inspect the serde package with version 1.0.0:
cargo info serde@1.0.0
Inspect the serde package form the local registry:
cargo info serde --registry my-registry
{{man “cargo” 1}}, {{man “cargo-search” 1}}