cargo metadata

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


--features <features...>
  • Repeatable ♾
--filter-platform <filter-platform>
  • Repeatable ♾
--manifest-path <manifest-path>Path to Cargo.toml
--format-version <format-version>Format version
--color <color>Coloring: auto, always, never
--config <config>
  • Repeatable ♾
-Z <unstable-features>
  • Repeatable ♾
-q, --quietDo not print cargo log messages
--all-featuresActivate all available features
--no-default-featuresDo not activate the `default` feature
--no-depsOutput information only about the workspace members and don't fetch dependencies
-h, --helpPrint help information
-v, --verbose
  • Repeatable ♾
--frozenRequire Cargo.lock and cache are up to date
--lockedRequire Cargo.lock is up to date
--offlineRun without accessing the network