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

Use sparse registry for Cargo #263

Closed
giordano opened this issue Aug 25, 2022 · 1 comment · Fixed by #306
Closed

Use sparse registry for Cargo #263

giordano opened this issue Aug 25, 2022 · 1 comment · Fixed by #306

Comments

@giordano
Copy link
Member

When it will become available in a stable version of Rust we support, it'd be nice to automatically enable the sparse registry: https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html. Updating the registry always takes an overly large fraction of the build process of Rust packages, in addition to the fact we can't cache build outputs (related issue: #186).

@giordano
Copy link
Member Author

giordano commented Jan 22, 2023

For the record, rust-lang/cargo#11224 was merged and should make it to the next version of Rust.

I believe that on our side we only need to set the environment variable

CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

Update:

Sparse registries are now stabilized and will be available in Rust 1.68, which will be released on 2023-03-09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant