]> source.dussan.org Git - gitea.git/commit
Implement Cargo HTTP index (#24452)
authorKN4CK3R <admin@oldschoolhack.me>
Wed, 3 May 2023 20:58:43 +0000 (22:58 +0200)
committerGitHub <noreply@github.com>
Wed, 3 May 2023 20:58:43 +0000 (16:58 -0400)
commit723598b803919bfc074fee05f830421a99881c3b
treef220028e75c4815f1286ea24809ef72ca9408b6b
parent48e3e38ee040c9cfec6ea2adea2da49a7f21f2c7
Implement Cargo HTTP index (#24452)

This implements the HTTP index
[RFC](https://rust-lang.github.io/rfcs/2789-sparse-index.html) for Cargo
registries.

Currently this is a preview feature and you need to use the nightly of
`cargo`:

`cargo +nightly -Z sparse-registry update`

See https://github.com/rust-lang/cargo/issues/9069 for more information.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
routers/api/packages/api.go
routers/api/packages/cargo/cargo.go
services/packages/cargo/index.go
tests/integration/api_packages_cargo_test.go