Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add support for sparse registry #86

Closed
Christiaan676 opened this issue Jan 2, 2023 · 4 comments
Closed

Feature request: Add support for sparse registry #86

Christiaan676 opened this issue Jan 2, 2023 · 4 comments

Comments

@Christiaan676
Copy link

An update for cargo is in the works to make downloading of the index smaller and faster. This is especial important for CI jobs. It would be nice, if Panamax could support this.

Rust blog post: https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
Tracking issue: rust-lang/cargo#9069

@wcampbell0x2a
Copy link
Member

I have a small project to download a small portion of crates.io, meant to be used with the new sparse register feature. Panamax should need only a small addition for this, since the new version just needs http.

https://github.com/wcampbell0x2a/zerus

@k3d3
Copy link
Member

k3d3 commented Jan 10, 2023

I'm very interested in having sparse registry support in Panamax! Like @wcampbell0x2a mentioned, I'm hoping there shouldn't be too much more than to just expose the crates.io-index directory via HTTP.

@Christiaan676
Copy link
Author

@wcampbell0x2a @k3d3
Yes, agree. Looking at the RFC, Etag or If-Modified-Since header support might be needed as well.

@k3d3
Copy link
Member

k3d3 commented Feb 4, 2023

Now implemented in the panamax serve command as of v1.0.10. The sparse index is now exposed at /index/.

That means if your previous registry line in .cargo/config was:

registry = https://panamax.internal/git/crates.io.index

You will be able to use the sparse index by changing it to:

registry = sparse+https://panamax.internal/index/

I've also updated the panamax serve homepage to reflect this new URL.

@k3d3 k3d3 closed this as completed Feb 4, 2023
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

No branches or pull requests

3 participants