Skip to content

Conversation

@syphar
Copy link
Member

@syphar syphar commented Dec 11, 2025

for now, copy/paste the subcrate we want to have published for clarity.

Then this PR migrates most web handlers working with crate names to use the newtype first. This makes it possible to decline a bunch of requests without any database query.

Only handler where we needed a little more work was the rustdoc_redirector_handler where we have to handle some non-crate cases before we can validate.

I intentionally limited the migration to just a first block, otherwise the new types leak into the whole codebase.
And I want to do the migration step by step.

@syphar syphar requested a review from a team as a code owner December 11, 2025 23:27
@syphar syphar changed the title add krate-name validation to web endpoints add crate-name validation to web endpoints Dec 11, 2025
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Dec 11, 2025
@syphar syphar self-assigned this Dec 11, 2025
@GuillaumeGomez
Copy link
Member

Normally you don't need to push sqlx files, our CI will handle it. ;)

@syphar syphar merged commit 33e8b11 into rust-lang:main Dec 12, 2025
19 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Dec 12, 2025
@syphar syphar deleted the validation-web branch December 12, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants