-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
add sparse url in cargo package guide #26937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add sparse url in cargo package guide #26937
Conversation
Could you write an additional sentence what's the difference? |
Yep, Sparse replaces the cloning of the repo by simple http requests to each file supposed to be in the repo. It's faster and on gitea it's using directly packages api instead of the cargo-index repo, so this means we can remove some complexity from the cargo index integration:
https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-sparse-protocol.html |
Sry, not to me, into the docs 😄 I know what it is, I implemented it 😏 |
* giteaofficial/main: fix media description render for orgmode (go-gitea#26895) Show OpenID Connect and OAuth on signup page (go-gitea#20242) Update status and code index after changing the default branch (go-gitea#27018) add sparse url in cargo package guide (go-gitea#26937) Add missing 404 response to Swagger (go-gitea#27038) Fix object storage path handling (go-gitea#27024) [skip ci] Updated translations via Crowdin bump rootful to 16gb setup go in the nightly release pipeline Speed up nightly builds (go-gitea#27045) Improve repo/user/org search (go-gitea#27030) Use Actuated.dev runner for nightly builds update snap package (go-gitea#27021) resolve issue with sort icons on admin/users and admin/runners (go-gitea#24360)
Hello,
The current package guide for cargo gives you only the git index, with the HTTP Index stabilized being used as default for crates.io and being better for most use-cases.
However, it's not documented that gitea supports the sparse spec, and it does not require the _crates-index git repo for the sparse api.
I personally think we should push users to use the sparse instead of the git repository. (Even let users disable crates-index repos if they only want to use sparse)