Skip to content

add generic sparse registry support, use it for crates.io - #151

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:sparse-registry
Sep 11, 2026
Merged

add generic sparse registry support, use it for crates.io#151
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:sparse-registry

Conversation

@syphar

@syphar syphar commented Sep 11, 2026

Copy link
Copy Markdown
Member
  • adds support for sparse registries. For now, only used in integration tests in docs.rs, but IMO the support generally is good to have
  • the crates_io support now just uses the sparse registry support
  • renames "alternate registry" with "git registry" support, what it (now) actually is. Tries to keep backwards compatibility with some aliases / re-exports, not sure if that's necessary or we just do the breaking change.
  • we previously didn't support all placeholders for download urls, I didn't fix that in this PR. Doing so would also mean fetching the checksum from the (git/sparse) index, so we can include it in the download url. See also Fix registry download URL template expansion frewsxcv/rust-crates-index#201 and the cargo registry docs. Not sure if that's worth the time / effort, or if we even should start using the crates-index lib for some of the features in here.

@syphar syphar changed the title add alternate sparse registry support, use it for static.crates.io too add generic sparse registry support, use it for static.crates.io too Sep 11, 2026
@syphar syphar changed the title add generic sparse registry support, use it for static.crates.io too add generic sparse registry support, use it for crates.io Sep 11, 2026
@syphar syphar self-assigned this Sep 11, 2026
@syphar
syphar marked this pull request as ready for review September 11, 2026 05:51
@syphar

syphar commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

r? @GuillaumeGomez

@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@GuillaumeGomez
GuillaumeGomez merged commit 0f2c084 into rust-lang:main Sep 11, 2026
11 checks passed
@syphar
syphar deleted the sparse-registry branch September 11, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants