As a next step, this PR adds the trusted publishing endpoints to the
crates.io API client.
Also slightly improves our pagination handling for crates.
Release Notes:
- N/A
As a next step, this adds endpoints to the API client for crates.io to
query a list of crates as well as patch a crate and get crate info. Also
follows the OpenAPI spec available from crates.io.
Release Notes:
- N/A
Adds a `crates_io_client` tooling crate for the crates.io REST API:
- `RealCratesIoClient` authenticates with an API token and follows the
crates.io data access policy (https://crates.io/data-access).
- Errors distinguish missing permissions (401/403), missing resources
(404), and other upstream failures.
- `SimulatedCratesIoClient` (behind `test-support`) serves in-memory
responses.
For testing this, this PR also adds the `GET /api/v1/site_metadata` as a
first endpoint.
Release Notes:
- N/A