pub fn get_metadata(manifest_path: Option<&Path>) -> Result<Metadata>Expand description
Get cargo metadata for a workspace or package.
This is a convenience function that handles --manifest-path idiomatically.
When running as a cargo subcommand, cargo passes --manifest-path to the
subcommand, so this function handles it explicitly.