RFE: support local registry along with crates.io one
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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