-
Notifications
You must be signed in to change notification settings - Fork 643
More metadata in index? #410
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
Comments
You can use the crates.io API to learn about the full metadata for a crate, but the index is intended to be a very efficient data structure used by Cargo to perform resolution very quickly, so I'd be hesitant to start expanding it for other tools. |
It would be useful to be able to download the repository data somehow without having to query the API every time at least though. |
Would it be possible to obtain a dump of the crates.io database, including the full metadata and stats for each crate and excluding user information? (similarly as RubyGem provides https://rubygems.org/pages/data). |
@riivo perhaps yeah! Sounds like a neat idea |
@alexcrichton even a |
Closing in favor of #630! |
Currently the metadata available in the git index is very small[1], containing just what cargo itself needs, but the index would be very useful for other purposes as well, since there's no other way to get a dump of the crates data. A few things in the
krate::Crate
struct that would be useful for other things are the license, repo, homepage, docs, description, et.c.Another solution would be to provide another form of data dump of the crates.io index, but adding it to the git index seems like the simplest way. Comments/thoughts?
The text was updated successfully, but these errors were encountered: