-
Notifications
You must be signed in to change notification settings - Fork 2.6k
registry-index: Add release date
to Index Format
#15491
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
Comments
@reneleonhardt could you describe your use case for needing to know the date? Please note that putting a field in the index comes with costs. It will be filled in for every version of every package (at least from the current time on, maybe backfilled). This increases the size of the Index files, making updating of the index take longer. For this reason, the primary purpose of the Index is not to store general crate metadata but to provide what is needed for dependency resolution without further API calls or downloading a |
I don't want to persuade you if you don't have the resources for a new attribute 😄 My use case would be to parse Cargo.lock files and combine it with all available releases to display possible updates.
And cargo update doesn't allow bumping Cargo.toml, so most of the time developers don't even know when a new minor update of a dependency has been released. My tool shows for a typical go.mod for example:
|
Yes, we require the populating of fields that were initially required so the Index can be read by old versions of Cargo. See #14506 for more details.
We are open to discussing improvements. The question of what is "intuitive" is dependent on the end-user and their goals though.
Not quite sure what you are getting at with this.
Yes, this is being tracked in #12425. |
Just an example that the release date is available in static dumps: But only the last 10 releases are being published. FYI, if yanked is considered to be important (not optional), it's missing in the rss schema (i.e. 0.14.4 has been yanked a year ago). |
Problem
The registry-index JSON Schema contains the version in the
vers
key, but not the releasedate
.It would be very helpful not having to request the API only for getting this information bit 😄
Coincidentally that
date
is the default sorting key for the web UI (notice theSort by
drop down).Example JSON Lines: https://index.crates.io/2/cc
Please note that
yanked
is included in every line, even if it isfalse
(default is not visualized in the web UI) for most versions in contrast to the releasedate
.Proposed Solution
Can the schema be extended by the release
date
which is visualized in HTMLhttps://crates.io/crates/cc/versions
For example version 1.2.21 has been released on May 2nd, 2025:
Please note that the release date of the first version is always shown in the web UI:
Notes
No response
The text was updated successfully, but these errors were encountered: