cargo::ops

Function output_metadata

Source
pub fn output_metadata(
    ws: &Workspace<'_>,
    opt: &OutputMetadataOptions,
) -> CargoResult<ExportInfo>
Expand description

Loads the manifest, resolves the dependencies of the package to the concrete used versions - considering overrides - and writes all dependencies in a JSON format to stdout.