rust-lang / rust-lang/cargo

RFE: support local registry along with crates.io one

Open
#4,883 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-registries C-feature-request S-needs-design
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Currently, in Fedora packaging, we have to add

[source.local-registry]
directory = "/usr/share/cargo/registry"

[source.crates-io]
registry = "https://crates.io"
replace-with = "local-registry"

But it completely replaces crates.io registry. It is fine for packaging, but is not user-friendly for those who don't want to do this when developing their own projects.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Fedora configuration using [source.local-registry] and [source.crates-io] in a Cargo project, then read Cargo's source replacement and registry configuration behavior. Define how local-registry and crates.io should coexist for development while preserving Fedora packaging, and verify the chosen behavior with focused Cargo tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.