rust-playground
rust-playground copied to clipboard
Public API request: list of the top 100 crates that are currently available on the playground
To better implement a crates.io feature to show a button linking to the playground to try a crate, we'd like to have a public API available from the playground of what the top 100 are.
We're interested in the ones that are actually in the top 100, not those that are included by virtue of being dependencies of the top 100. I don't know if the full list would be useful to anyone else; if it is, I could see that being a query parameter or a separate API route or similar.
What do you think?
in the linked PR we are currently requesting https://play.rust-lang.org/meta/crates to get the list of supported crates. the best solution from our side would be if that endpoint supported a query parameter like ?top-level=true. in case this is just a static file that is exposed, then a isTopLevel: true/false field on each of the records would also work fine, I guess.