Skip to content

Create crates.xml RSS feed #8986

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

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Create crates.xml RSS feed #8986

merged 2 commits into from
Jul 11, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 3, 2024

This creates an RSS feed published at https://static.crates.io/rss/crates.xml. The feed is synced with the database in a background job after every successful publish of a new crate. It includes the latest 50 newly created crates with their name, crate description, URL and publish date, but at least all of the crates published within the past 60 minutes.

Related:

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Jul 3, 2024
@Turbo87 Turbo87 requested a review from a team July 3, 2024 10:55
@Turbo87 Turbo87 force-pushed the crates-feed branch 2 times, most recently from 469b6bd to d8a0b93 Compare July 3, 2024 11:36
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 97.36842% with 6 lines in your changes missing coverage. Please review.

Project coverage is 89.11%. Comparing base (27d505b) to head (ff7901a).

Files Patch % Lines
src/worker/jobs/rss/sync_crates_feed.rs 97.31% 4 Missing ⚠️
src/admin/enqueue_job.rs 0.00% 1 Missing ⚠️
src/controllers/krate/publish.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8986      +/-   ##
==========================================
+ Coverage   89.05%   89.11%   +0.06%     
==========================================
  Files         278      280       +2     
  Lines       27987    28214     +227     
==========================================
+ Hits        24923    25144     +221     
- Misses       3064     3070       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Turbo87 Turbo87 force-pushed the crates-feed branch 3 times, most recently from b6b6df2 to 78fffd5 Compare July 7, 2024 08:19
Turbo87 added 2 commits July 11, 2024 10:57
This creates an RSS feed published at https://static.crates.io/rss/crates.xml. The feed is synced with the database in a background job after every successful publish of a new crate. It includes the latest 50 newly created crates with their name, crate description, URL and publish date.
@Turbo87 Turbo87 merged commit dce8bc0 into rust-lang:main Jul 11, 2024
9 checks passed
@Turbo87 Turbo87 deleted the crates-feed branch July 11, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants