Skip to content

cargo add should warn on binary crates #11803

Open
@ghost

Description

Problem

It was suggested that I should open this issue. Currently if you try to add a binary crate, it allows you to do that:

cargo add gitoxide

when it should probably fail, or at least warn the user that this is not something they should be doing.

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Labels

A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-addE-mediumExperience: MediumS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions