EmbarkStudios / krates

📦 Creates graphs of crates from cargo metadata 🦀
Apache License 2.0
58 stars 18 forks source link

Refactor crates.io index support #55

Closed Jake-Shadle closed 1 year ago

Jake-Shadle commented 1 year ago

Previously, if the prefer-index feature was enabled, crates-index was used to read cache entries to fix features for crates.

However, crates-index can be a problematic dependency since it requires git2 regardless of whether you use the git index or not

Using with-crates-index preserves the old behavior to just use crates-index, however, prefer-index now allows users to implement their own Index implementation if they would like leaving the choice of git/http/etc up to the calling code