killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.09k stars 148 forks source link

Preliminary support for sparse indices #870

Closed MoSal closed 2 months ago

MoSal commented 1 year ago

This will forever be a draft, unless someone adopts it of course. But I hope it will help moving things forward.

This implements preliminary support for sparse indices.

ureq was already a dependency for some reason. So I used it after enabling the "gzip" feature.

Note to implementers regarding gix-based GitIndex from the latest crates_index:

I didn't inspect those issues further, as I just wanted to make sparse indices work for me.

Related issues: #841, #865, #868, possibly #869

amsam0 commented 1 year ago

git index support should probably be supported by reading the cargo config value, but it seems like a pain to find the config path so I can understand why you wouldn't want to add it, lol

epage commented 1 year ago

Something to keep in mind is that the FCP is about to close on merging parts of cargo-upgrade into cargo-update after which I'll get to work on doing that and it will be available in a nightly.

MoSal commented 1 year ago

@epage

Sounds good.

tgross35 commented 1 year ago

@epage do you have a link to the proposal you mentioned? Wondering what the exact change is but can't find anything.

epage commented 1 year ago

https://github.com/rust-lang/cargo/issues/12425

I have a got a lot of the peripheral aspects done but haven't gotten to the core of it yet

dvc94ch commented 8 months ago

does this mean that cargo upgrade is broken for everyone that installed cargo/rust after the new registry format was added? how can I use the old registry format?

dvc94ch commented 8 months ago

what's the alternative right now? installing vscode and the rustrover plugin to update incompatible dependencies?