Skip to content

RFC: Be able to provide "local configuration" while installing a "local crate" #6498

Closed
@xelephas

Description

@xelephas

Describe the problem you are trying to solve

After #6026, cargo install will only use the configuration file at ~/.cargo/config
However, it would be nice to be able to provide a "local configuration" while installing a "local crate"

Describe the solution you'd like

While installing a local crate using cargo install --path {proj-folder}, either:

Only look for {proj-folder}/.cargo/config,

or

First look for {proj-folder}/.cargo/config, and then fall back to ~/.cargo/config if it doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env varsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-installS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions