Skip to content

Allow user to override the index's config.json from .cargo/config #1923

Closed
@gmjosack

Description

@gmjosack

Currently the only way to change the place that cargo downloads packages from is to run your own index. When you're trying to run a simple mirror of the existing crates.io index for an internal network this is complicated as you have to maintain a fork that constantly pulls from upstream and will have merge conflicts if/when the config.json is modified.

I'd love to have the ability to specify dl or api locally in the .cargo/config that would override the config.json of the index.

I'd be happy to do that actual work to cargo here if this is agreed to be valuable.

Context: https://internals.rust-lang.org/t/production-user-research-summary/2530/11?u=gmjosack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions