Skip to content

Once we support registry configuration, allow specifying --registry in addition to --index #4498

Closed
@carols10cents

Description

@carols10cents

And then look up the index location in .cargo/config.

The configuration support is part of RFC 2141 and there's an implementation started by @withoutboats that will hopefully be merged in soon :)

That way, whenever you want to, say, publish to an alternative registry, if you've configured said registry in .cargo/config with a name of "myregistry" like so:

[registries.myregistry]
index = "https://github.com/myorg/crates-registry" 

you'd currently have to run:

cargo publish --index https://github.com/myorg/crates-registry

but we should be able to teach cargo to understand:

cargo publish --registry myregistry

and do the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-registriesArea: registriesS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.T-cargoTeam: Cargo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions