24 Pull Requests
rust-lang

rust-lang/crates.io

The Rust package registry
Rust
View on GitHub https://crates.io
bug
design
feature
documentation
tests
help-wanted
enhancement
Contribulator score: 33 Last scored 2023-11-07 18:31:11 UTC
Contributors (5)
  • BlakeWilliams
  • carols10cents
  • DoumanAsh
  • pimterry
  • Turbo87

Pull requests (208)

Turbo87

controllers/helpers/pagination: Remove generic parameter from `is_useragent_or_ip_blocked()` fn to rust-lang/crates.io 2024-12-12 17:44:08 UTC

This PR is roughly similar to #10190 and removes another generic parameter

Turbo87

controllers/helpers/pagination: Remove generic parameter from `gather()` fn to rust-lang/crates.io 2024-12-12 16:03:12 UTC

Ideally we'd only pass in a Uri, but since we're using the RequestLog we still need to pass in the full Parts struct.

Previously we were compiling two variants of this function, one for Parts and one for Request, although on…

Turbo87

Fix pagination field generation for duplicate keys to rust-lang/crates.io 2024-12-12 15:19:00 UTC

Our search endpoint supports having multiple ids[] query parameters defined, but the way we generate our pagination fields only considered the last such query parameter until now. This PR fixes the code to include all query parameters …

Turbo87

Use `utoipa` crates to generate and serve basic OpenAPI description to rust-lang/crates.io 2024-12-11 15:54:30 UTC

Bildschirmfoto 2024-12-11 um 16 47 05

This PR implements the basic infrastructure to have an experimental, best-effort, automatically generated Op…

Turbo87

styles/buttons: Use `not-allowed` cursor for disabled buttons to rust-lang/crates.io 2024-12-10 15:21:06 UTC

This makes it a bit more visible when buttons are disabled.

Turbo87

styles/buttons: Fix font color in disabled state to rust-lang/crates.io 2024-12-10 13:49:16 UTC

9bbea928ba2c66247fa64e6474f371ac3d57d48c introduced an important! marker, but missed that this was somewhat incompatible with the disabled state. This commit fixes it by also using important! for the disabled state. Clearly not a goo…

Turbo87

UI: Implement `/crates/:name/delete` route to rust-lang/crates.io 2024-12-10 13:46:24 UTC

This partially implements step 2 of https://github.com/rust-lang/crates.io/issues/9352. The missing piece after this PR is a "Delete" button in the crate settings tab, since the new route is currently only reachable by typing it directly…

Turbo87

CI: Fix zizmor issues to rust-lang/crates.io 2024-12-10 10:23:12 UTC

see https://woodruffw.github.io/zizmor/

Turbo87

mirage: Implement `DELETE /api/v1/crates/:name` endpoint to rust-lang/crates.io 2024-12-10 09:17:22 UTC

see https://github.com/rust-lang/crates.io/pull/9904

Turbo87

controllers/krate/delete: Adjust HTTP status code to rust-lang/crates.io 2024-12-09 16:31:25 UTC

DELETE endpoints are supposed to return "204 No Content" upon successful deletion, unless the response contains an entity, which is not the case here.

see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE#successfully…

Turbo87

Reapply "Merge pull request #10069 from Turbo87/publish-stream" to rust-lang/crates.io 2024-12-09 11:20:21 UTC

This reverts commit 4f55cbedd87b9178ef77c03eab6c21c7700c48f5.

Related:

  • #10069
  • https://github.com/rust-lang/crates.io/issues/10098
  • https://github.com/rust-lang/crates.io/pull/10102
Turbo87

Include email address in support buttons to rust-lang/crates.io 2024-12-05 12:44:42 UTC

Bildschirmfoto 2024-12-05 um 13 44 16

Resolves https://github.com/rust-lang/crates.io/issues/9949

Turbo87

util/errors: Remove unused `From<...> for BoxedAppError` impls to rust-lang/crates.io 2023-12-20 15:30:41 UTC

These two don't appear to be needed anymore since they have been replaced by explicit error handling.

Turbo87

Implement cargo compatibility status code enforcement feature flag to rust-lang/crates.io 2023-12-20 14:44:01 UTC

In https://github.com/rust-lang/crates.io/pull/7715 we implemented a middleware that ensured 200 OK response status codes for all API endpoints that are relevant for cargo (see https://doc.rust-lang.org/cargo/reference/registry-web-api…

Turbo87

controllers/helpers/pagination: Return `400 Bad Request` for invalid seek parameters to rust-lang/crates.io 2023-12-20 13:29:21 UTC

well… it's still 200 OK due to the cargo rewrite middleware, but it would be 400 if that wasn't there…

previously this was converted to an internal server error, but since it's not the server's fault if faulty data is passed in …

Turbo87

controllers/version/downloads: Move `app.version_id_cacher.insert()` call outside `spawn_blocking()` to rust-lang/crates.io 2023-12-20 11:35:29 UTC

This also means we don't need to use Handle::current().block_on() here anymore :)

Turbo87

controllers/version/downloads: Remove canonical crate name from query to rust-lang/crates.io 2023-12-20 10:58:29 UTC

At this point non-canonical downloads are responded to with a 404 error, so we might as well rely on the query failing to accomplish that. We unfortunately still need the query for download counting for now, but that will hopefully be re…

Turbo87

controllers/version/downloads: Use regular 404 error instead of custom `NonCanonicalDownload` struct to rust-lang/crates.io 2023-12-20 10:04:07 UTC

The NonCanonicalDownload struct was useful when we had a custom error message, but as this is no longer the case we don't need this anymore.

Turbo87

Use `SecretString` for `token` fields to rust-lang/crates.io 2023-12-19 17:52:13 UTC

I wanted to add Debug impls for all of the structs that implement the new Email trait, but then I saw that some of them contain sensitive information. This PR replaces those fields with secrecy::SecretString types to ensure that th…

Turbo87

email: Merge `TransportError` variants to rust-lang/crates.io 2023-12-19 17:49:03 UTC

Unfortunately lettre uses different error types for all the transports, but that doesn't mean we need to follow that example. This PR merges the three variants into one using anyhow::Error, since we don't really care about the specif…

Turbo87

models/crate_owner_invitation: Remove unused `Eq` impls from `CrateOwnerInvitation` struct to rust-lang/crates.io 2023-12-19 17:14:24 UTC

These appear to be unused and prevent us from using SecretString inside the struct

Turbo87

models/email: Remove unused `AsChangeset` impl from `Email` struct to rust-lang/crates.io 2023-12-19 16:22:56 UTC

This does not appear to be used for anything… 🤷‍♂️

Turbo87

Extract `Email` trait to rust-lang/crates.io 2023-12-18 14:29:03 UTC

Previously we implemented new email variants by adding another method to the Emails struct, which then internally called self.send(...).

This PR explores a different implementation where each email variant is represented by its ow…

Turbo87

controllers/version/downloads: Return regular 404 error for non-canonical downloads to rust-lang/crates.io 2023-12-18 10:29:57 UTC

see https://blog.rust-lang.org/2023/10/27/crates-io-non-canonical-downloads.html

Turbo87

Remove `reject_non_canonical_downloads` feature flag to rust-lang/crates.io 2023-12-18 10:21:09 UTC

We've had this enabled for about a month now so its time to remove the feature flag.

« First ‹ Prev 1 2 3 4 5 6 … Next › Last »
  • Sponsored by  DNSimple,  Octobox &  Bugsnag
  • About
  • How to contribute?
  • API
  • Unsubscribe
    •  English
    •  Español
    •  Ελληνικά
    •  Português do Brasil
    •  Suomi
    •  Français
    •  Deutsch
    •  Русский
    •  Українська
    •  ไทย
    •  Italiano
    •  Norsk bokmål
    •  தமிழ்
    •  Tr
    •  简体中文
    •  正體中文
    •  日本語
    •  Čeština
    •  हिंदी
    •  Polski
    • Translate into your language!