diff --git a/templates/package/content/cargo.tmpl b/templates/package/content/cargo.tmpl
index da9fc4ab39..4dd7c3f731 100644
--- a/templates/package/content/cargo.tmpl
+++ b/templates/package/content/cargo.tmpl
@@ -8,7 +8,7 @@
default = "gitea"
[registries.gitea]
-index = "" # Sparse index
+index = "sparse+" # Sparse index
# index = "" # Git
[net]