cargo-metadata man page

cargo-metadata ā€” Machine-readable metadata about the current package


cargo metadata [Options]


Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format.


-h, --help

Print this message.

--features FEATURES

Space-separated list of features.


Build all available features.


Do not include the default feature.


Output information only about the root package and don't fetch dependencies.

--manifest-path PATH

Path to the manifest.

--format-version VERSION

Format version [default: 1]. Valid values: 1.

-v, --verbose

Use verbose output.

-q, --quiet

No output printed to stdout.

--color WHEN

Coloring: auto, always, never.

See Also


Referenced By


May 2016 The Rust package manager Cargo Manual