fn read_manifest_from_str(
    contents: &str,
    manifest_file: &Path,
    embedded: bool,
    source_id: SourceId,
    config: &Config
) -> CargoResult<(EitherManifest, Vec<PathBuf>)>
Expand description

Parse an already-loaded Cargo.toml as a Cargo manifest.

This could result in a real or virtual manifest being returned.

A list of nested paths is also returned, one for each path dependency within the manifest. For virtual manifests, these paths can only come from patched or replaced dependencies. These paths are not canonicalized.