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

Add support for downloading the sparse index config #165

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

Nemo157
Copy link
Contributor

@Nemo157 Nemo157 commented Apr 7, 2024

fixes #164

Copy link
Collaborator

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, great work!

Please note that I changed parse_config_response() to fail if the write fails, and to not write if the response cannot be parsed.

use crates_index::{Error, SparseIndex};
use std::io;

// curl -v -H 'accept-encoding: gzip,identity' https://index.crates.io/config.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this comment!

@Byron Byron merged commit 3667cd0 into frewsxcv:master Apr 8, 2024
2 checks passed
@Byron
Copy link
Collaborator

Byron commented Apr 8, 2024

The new release with this feature can be found here: https://github.com/frewsxcv/rust-crates-index/releases/tag/v2.7.0

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.

No way to acquire config with a sparse registry if it doesn't exist locally
2 participants