Closed kyrias closed 7 years ago
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 pg_dump
of the tables related to the crates would be enough I think
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?