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

github/secret_scanning: Consider revoked tokens as true positive to rust-lang/crates.io 2022-12-14 09:37:02 UTC

When a token has already been revoked we will return to GitHub that it was a "true positive" now, but we skip sending out a notification email to the owner since we don't allow unrevoking tokens.

This PR also extracts a `send_notifica…

Turbo87

github/secret_scanning: Avoid duplicate emails to rust-lang/crates.io 2022-12-13 17:13:33 UTC

We should not send emails for already revoked tokens.

Turbo87

github/secret_scanning: Adjust logging content to rust-lang/crates.io 2022-12-13 16:55:51 UTC

Even if the tokens are already leaked on GitHub we shouldn't write them to the logs. Instead we will log the token ID.

Turbo87

github/secret_scanning: Check for *hashed* tokens to rust-lang/crates.io 2022-12-13 15:36:26 UTC

We don't save tokens in plaintext in the database, so the new secret scanning endpoint needs to look for the hashed token instead of the plaintext token.

Turbo87

GitHub Secret Scanning improvements to rust-lang/crates.io 2022-12-13 11:29:53 UTC

This PR builds on top of #5495 and improves the code a little bit more. See the individual commit messages for more details.

Turbo87

middleware: Enable `LogRequests` middleware in test mode to rust-lang/crates.io 2022-12-12 17:52:20 UTC

Since we use tracing for the HTTP logs now and that uses the test writer we don't have to disable this anymore.

Turbo87

WIP: CI: Run backend/frontend jobs only for changes in corresponding files to rust-lang/crates.io 2022-12-12 09:28:54 UTC

Turbo87

conduit-hyper: Remove unnecessary dependency declarations to rust-lang/crates.io 2022-12-09 20:02:24 UTC

We can use the re-exported types instead, which helps to avoid potential version conflicts.

Turbo87

tracing: Extract `init_for_test()` function to rust-lang/crates.io 2022-12-09 17:29:29 UTC

This was previously only usable from within the tests module, but now it can also be used in unit tests.

Turbo87

email: Remove `email_backend` metadata logging to rust-lang/crates.io 2022-12-09 17:29:09 UTC

We're only allowing SMTP in production, so logging the backend in our production logs seems a bit redundant.

Turbo87

Run tests through `conduit-hyper` layer to rust-lang/crates.io 2022-12-09 11:21:08 UTC

Previously, our test suite ignored the hyper wrapper and just interfaced with conduit directly. We would eventually like to migrate our conduit middlewares to tower middlewares though, so we will need to run our tests through as …

Turbo87

tests/routes/crates/list: Fix `.search()` calls with invalid characters to rust-lang/crates.io 2022-12-09 11:13:47 UTC

.search() is putting this value directly into MockRequest::with_query(), which expects a URL-encoded string. This currently only works because we're skipping the hyper layer in our test suite, but would cause invalid URL errors oth…

Turbo87

tests/Response: Replace `conduit::Response` with `reqwest::blocking::Response` to rust-lang/crates.io 2022-12-09 09:02:54 UTC

We are using our own Response struct from src/tests/util/response.rs to wrap around a conduit::Response to make it more ergonomic to use in our test suite. This however creates a tight coupling between conduit and our test suite….

Turbo87

tests/routes/categories/get: Avoid database connection deadlock to rust-lang/crates.io 2022-12-08 20:39:19 UTC

The app.db() closure takes the only existing database connection and any API requests inside the closure can deadlock waiting on the connection. For some reason this does not appear to cause any issues in the current state, but once th…

Turbo87

tests/util/response: Remove unnecessary `mem::swap()` to rust-lang/crates.io 2022-12-08 12:45:49 UTC

By reordering the header checks, we can use .into_body() instead.

Turbo87

Replace unnecessary `conduit` imports to rust-lang/crates.io 2022-12-08 12:18:20 UTC

Most of them can use http directly, which helps us migrate away from conduit eventually

Related:

  • #5611 condui
Turbo87

tests: Replace unnecessary `conduit` imports to rust-lang/crates.io 2022-12-08 11:24:52 UTC

Most of them can use http directly, which helps us migrate away from conduit eventually

Turbo87

WIP: axum migration to rust-lang/crates.io 2022-12-07 17:48:48 UTC

Turbo87

Vendor `conduit-hyper` crate to rust-lang/crates.io 2022-12-07 12:21:32 UTC

see https://github.com/conduit-rust/conduit-hyper

We are the only users of this crate and we would eventually like to migrate away from using conduit. Vendoring the crate into the main crates.io repo will hopefully make it easier to…

Turbo87

middleware::EmberHtml: Move `fastboot_client` into the `App` struct to rust-lang/crates.io 2022-12-04 18:13:52 UTC

Turbo87

Move `cargo.png` into `assets` folder to rust-lang/crates.io 2022-12-04 16:48:50 UTC

There is no obvious need for this file to exist outside of the assets folder and need special handling in nginx

Turbo87

Header: Use `cargo.png` instead of redundant second image file with unwanted padding to rust-lang/crates.io 2022-12-04 16:29:50 UTC

Turbo87

middleware::ember_html: Use `lookup()` to avoid unnecessary path mutation to rust-lang/crates.io 2022-12-04 15:21:08 UTC

This will also have the side effect of our logs showing the correct requested path instead of /index.html for everything.

Turbo87

tests: Add missing slash prefixes to API requests to rust-lang/crates.io 2022-12-04 13:31:32 UTC

Turbo87

tests/record: Use `.json` file extension for HTTP fixtures to rust-lang/crates.io 2022-12-03 15:51:28 UTC

This makes them much easier to handle when opened in the editor… 😅

« First ‹ Prev 1 2 3 4 5 6 7 8 9 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!