Closed kornelski closed 1 year ago
I could help working on this.. I've been wanting / needing API with guarantees and looking up exact version I did use the old API in specific to find out all the duplicates across index when I cleaned them up in January https://github.com/frewsxcv/rust-crates-index/issues/73 Maybe as a new API on parallel to existing .. ? I am not sure how long the git index will continue due new HTTP Index - this may force on the issue New breaking version could use HTTP index that is faster too that provides specific explicit lookups EDIT: I miscommunicated initially thus edited - sorry :blush:
What's your proposal?
I'll have to map others use-cases a bit more and maybe I can come up with something more concrete and less niche than my own to help avoid that reading into memory problem - I think some helper traits / impls could be useful that can be used in Iterable
p.s. I've been hoping that crates .io would have gone something like GraphQL that would enable this stuff like GH GraphQL API does
crates-io is growing, and eventually it will be too slow and cumbersome to read the whole index into memory.
For now I've seen two types of uses of this crate:
How should this crate adapt to this? What are the use-cases for reading all/most of the crates?