theduke / crates-io-api

API client for crates.io, the Rust crate registry.
Apache License 2.0
72 stars 26 forks source link

Add `recent_downloads` for `FullCrate` #62

Closed ginger51011 closed 1 year ago

ginger51011 commented 1 year ago

Right now, only Crate contains recent_downloads. However, the name of FullCrate seem to indicate to me that it should contain a superset of the fields of Crate. Am I missing some way of accessing this field?

Is this due to the underlying API, or would it be easy to add this field to FullCrate?

theduke commented 1 year ago

Probably just an oversight.

You can easily check what the API returns by opening the devtools when browsing crates.io.

Happy to receive a PR that adds the field.