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

feat: fetch crate versions and deps using sparse registry index #137

Merged
merged 14 commits into from
Jun 30, 2024

Conversation

saecki
Copy link
Owner

@saecki saecki commented Jun 29, 2024

This allows correctly resolving all optional dependencies as features (#14), by using cargos sparse registry index protocol.
Additionally this avoids the chained two step dependency fetching, but still requires making two requests.
Both the sparse index file and the api crate metadata have to be fetched, though that can be done in parallel.

The index files don't contain some fields currently used by crates.nvim:
ApiCrate

  • description
  • created
  • updated
  • downloads
  • homepage
  • documentation
  • repository
  • categories
  • keywords

ApiVersion

  • created

these are fetched separately from the crates.io api.

@saecki saecki marked this pull request as ready for review June 30, 2024 14:30
@saecki saecki merged commit dcc451c into main Jun 30, 2024
4 checks passed
@saecki saecki deleted the sparse_index branch July 1, 2024 09:58
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.

1 participant