-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-infoS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
cargo publish allow to pass --token <TOKEN> to authenticate.
I was expecting cargo info to support the same, so that it can used with private registries as well.
Proposed Solution
Allow authenticating using --token in cargo info.
Notes
I'm interested in this because I want to use cargo info PACKAGE@VERSION in release-plz to programmatically detect if a package is published.
At the moment I use the crates-index crate for that but I would like to get rid of this dependency and simplify my code.
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-infoS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.