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

CI: Split into frontend and backend workflows to rust-lang/crates.io 2022-12-03 15:39:54 UTC

Turbo87

tests/yank_unyank: Add authentication tests to rust-lang/crates.io 2022-12-03 15:30:47 UTC

… to prepare to the token scopes implementation

Turbo87

tests/krate/yanking: Move route tests into routes submodules to rust-lang/crates.io 2022-12-03 13:55:10 UTC

Related:

  • #5535
Turbo87

Ember Data: Fix relationship deprecation warnings to rust-lang/crates.io 2022-12-03 11:53:04 UTC

see https://rfcs.emberjs.com/id/0739-ember-data-deprecate-non-strict-relationships/

Turbo87

CrateScope: Remove crate name normalization to rust-lang/crates.io 2022-12-02 16:36:25 UTC

As discussed in the team meeting, this should instead be solved by having both variants as dedicated scopes, if necessary.

Turbo87

Implement token scope restrictions for our endpoints to rust-lang/crates.io 2022-12-01 16:17:24 UTC

This PR adjusts our AuthCheck calls for the three relevant endpoints (publish, change owner, yank) to check the token scope restrictions if the token has any.

Note that for the publish operation we unfortunately need an extra databa…

Turbo87

AuthCheck: Add `with_endpoint_scope()` and `for_crate()` options to rust-lang/crates.io 2022-12-01 14:23:03 UTC

This allows us to use something like:

    let auth = AuthCheck::default()
        .with_endpoint_scope(EndpointScope::ChangeOwners)
        .for_crate(crate_name)
        .check(req)?;
Turbo87

tests/owners: Add tests with token scopes to rust-lang/crates.io 2022-12-01 13:39:27 UTC

This PR adds four additional tests for the owner change endpoint, related to the implementation of token scopes. Note that these tests are currently all returning 200 Ok because token scope checks have not been enabled for this endpoin…

Turbo87

Implement `CrateScope` struct to rust-lang/crates.io 2022-12-01 12:26:19 UTC

Similar to #5568, this PR implements a CrateScope struct, which we use for the crate_scopes column of the API tokens database table. It also includes a matches() method to verify whether it matches a crate name or not.

Turbo87

Implement `EndpointScope` enum to rust-lang/crates.io 2022-12-01 12:05:33 UTC

This turns the endpoint_scopes column from Option<Vec<String>> to Option<Vec<EndpointScope>>, which is a bit more restrictive in the values it supports, and ensure that we're only serializing endpoint scopes to the database that ac…

Turbo87

Header: Remove obsolete "Docs" dropdown to rust-lang/crates.io 2021-12-24 15:57:07 UTC

The relevant links are now in the footer and everything else is already linked in "The Cargo Book", so there is no need for this dropdown in the header anymore.

Turbo87

Use `postcss-custom-media` plugin for breakpoints to rust-lang/crates.io 2021-12-24 15:56:09 UTC

This PR adds the https://github.com/postcss/postcss-custom-media PostCSS plugin to the style pipeline and imports the default breakpoints from https://tailwindcss.com/docs/responsive-design to eventually consolidate all of our existing b…

Turbo87

Remove "Filter by letter" feature to rust-lang/crates.io 2021-12-24 10:56:11 UTC

With over 70k crates it has become quite useless to filter the crates by their starting letter, so we might as well remove this feature to declutter the user interface a little bit.

Turbo87

Improve search bar styling to rust-lang/crates.io 2021-12-24 10:35:19 UTC

This moves the search icon to the submit button, and makes that submit button visible and clickable to the user. It also replaces the search icon PNG with an SVG.

Before

<img width="993" alt="Bildschirmfoto 2021-12-24 um 11 34 12"…

Turbo87

Improve "API Tokens" settings page to rust-lang/crates.io 2021-12-23 21:38:14 UTC

Before

<img width="994" alt="Bildschirmfoto 2021-12-23 um 22 33 02" src="https://user-images.githubusercontent.com/141300/147293184-03d219c1-78d0-422c-a757-e2cd0f4a07b4.png">

After

<img width="994" alt="Bildschirmfoto 2021…

Turbo87

Remove duplicate GitHub logo SVG to rust-lang/crates.io 2021-12-23 21:32:05 UTC

Turbo87

renovate: Disable `dependencyDashboardApproval` option to rust-lang/crates.io 2021-12-23 12:40:35 UTC

There is no real downside of having these PRs open automatically and whether or not we merge them is still our decision in the end.

Turbo87

Database pools to rust-lang/crates.io 2021-12-22 21:23:51 UTC

As suggested on Discord (see https://discord.com/channels/442252698964721669/835156566746595386/923210089085665381), this PR:

  • implements a primary database fallback if the replica is unavailable
  • renames the existing connection po…
Turbo87

Show "This page requires authentication" page for protected routes if unauthenticated to rust-lang/crates.io 2021-12-22 19:04:08 UTC

<img width="1008" alt="Bildschirmfoto 2021-12-22 um 20 02 10" src="https://user-images.githubusercontent.com/141300/147142321-1f56d28c-6a3c-4751-aefa-2d1e84bdb934.png">

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

No…

Turbo87

catch-all: Fix broken "Go back" and "Reload" links to rust-lang/crates.io 2021-12-22 18:16:45 UTC

> Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'sha256-n1+BB7Ckjcal1Pr7QNBh/dKRTtBQsIytFodRiIosXdE='". Either the 'unsafe-inline' keyword, a hash …

Turbo87

Adjust `/me` redirection to `/settings/tokens` to rust-lang/crates.io 2021-12-22 09:23:22 UTC

As discussed on Discord, the cargo login command is showing links to https://crates.io/me to access the API tokens. Since that is probably more important than any other bookmarks and has backwards compatibility concerns this PR is chan…

Turbo87

Implement new `/settings` route to rust-lang/crates.io 2021-12-21 17:39:31 UTC

This is basically similar to the /me route, but split into multiple subroutes to make the settings more scaleable.

<img width="1001" alt="Bildschirmfoto 2021-12-21 um 13 54 58" src="https://user-images.githubusercontent.com/141300/1…

Turbo87

renovate: Keep `cargo-tarpaulin` and `diesel_cli` automatically up-to-date to rust-lang/crates.io 2021-12-21 00:33:46 UTC

This works similar to the RUST_VERSION updates that we have already configured, but this time using the crate datasource, which corresponds to crates.io.

Turbo87

CI: Extract test coverage tracking into dedicated workflow to rust-lang/crates.io 2021-12-20 22:07:12 UTC

… and run that workflow only for pushes on the primary branch, instead of slowing down every single PR. Unless we make that coverage data more visible (e.g. using something like Codecov), it is probably not worth it to send 60% of the …

Turbo87

renovate: Pin dependency versions to rust-lang/crates.io 2021-12-20 21:46:40 UTC

see https://docs.renovatebot.com/dependency-pinning/

« First ‹ Prev … 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!