{{if eq .PackageDescriptor.Package.Type "cargo"}}
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = true
cargo add {{.PackageDescriptor.Package.Name}}@{{.PackageDescriptor.Version.Version}}
{{ctx.Locale.Tr "packages.dependency.id"}} | {{ctx.Locale.Tr "packages.dependency.version"}} |
---|---|
{{.Name}} | {{.Req}} |