Add option to "cargo metadata" that avoids network and filesystem changes, and ignores errors due to missing crates #5174
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
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?
The text was updated successfully, but these errors were encountered: