Skip to content

Option to disable installation with install #13699

Closed as not planned
Closed as not planned
@vertesians

Description

@vertesians

Problem

Some crates require extra processing that cargo install cannot provide even with build scripts (e.g., fish-shell/fish-shell#10181), causing them to be broken without warning.

Proposed Solution

Provide a config option on a bin that prevents it from being installed with cargo install, with an error message telling the user to refer to the crate's documentation or repository instead. Maybe also provide a flag that forces an install with a warning.

Notes

No response

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`Command-installS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions