Add an API endpoint for accessing the individual files of the crate (or at least Cargo.toml
)
#10754
JohnScience
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Just speaking for myself here, not for the team, but I don't think I'd want to add this to the crates.io API: crates.io isn't privileged in any way in terms of accessing crates (we'd have to download the crate file from S3 and extract it, just like anyone else), and it doesn't feel like something that is worth spending our limited resources on, since it's something anyone can do. Open to any other opinions from the team here, but my inclination would be to close this as unplanned. Sorry. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to have programmatic access to
Cargo.toml
to fetch their[package.metadata.*]
so thatmdbook
can have a well-supportedadd
command (see rust-lang/mdBook#163 (comment)).From https://users.rust-lang.org/t/how-to-see-the-code-for-crate-published-in-crate-io/1897 I know that with
https://crates.io/api/v1/crates/<crate-name>/<crate-semver>/download
I can download an archive with the source code. However, it seems wasteful.Neither of
offer the thing I would want.
Beta Was this translation helpful? Give feedback.
All reactions