Skip to content

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

Closed
kyrias opened this issue Aug 25, 2016 · 6 comments
Closed

More metadata in index? #410

kyrias opened this issue Aug 25, 2016 · 6 comments
Labels
C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works

Comments

@kyrias
Copy link
Contributor

kyrias commented Aug 25, 2016

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?

@alexcrichton
Copy link
Member

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.

@kyrias
Copy link
Contributor Author

kyrias commented Aug 26, 2016

It would be useful to be able to download the repository data somehow without having to query the API every time at least though.

@riivo
Copy link

riivo commented Aug 29, 2016

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).

@alexcrichton
Copy link
Member

alexcrichton commented Aug 29, 2016

@riivo perhaps yeah! Sounds like a neat idea

@Keats
Copy link

Keats commented Dec 8, 2016

@alexcrichton even a pg_dump of the tables related to the crates would be enough I think

@carols10cents carols10cents added the C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works label Dec 15, 2016
@carols10cents
Copy link
Member

Closing in favor of #630!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

No branches or pull requests

5 participants