Skip to content

Add option to "cargo metadata" that avoids network and filesystem changes, and ignores errors due to missing crates #5174

Closed
@xzn

Description

@xzn

Motivation is from this racer issue.

Currently racer doesn't deal with replaced/patched crates and crates-io mirror correctly, it also doesn't resolve to the correct version of a crate when looking for crate source. It was suggested in comments to use "cargo metadata" which would fix all of this however this currently makes network request to update the index and crate source which seems undesirable.

How difficulty would it be to add something similar to "--frozen," but additionally avoids touching the filesystem and ignores errors due to missing crates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions