{{if eq .PackageDescriptor.Package.Type "cargo"}}

{{.locale.Tr "packages.installation"}}

[registry]
default = "gitea"

[registries.gitea]
index = ""

[net]
git-fetch-with-cli = true
cargo add {{.PackageDescriptor.Package.Name}}@{{.PackageDescriptor.Version.Version}}
{{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Readme}}

{{.locale.Tr "packages.about"}}

{{if .PackageDescriptor.Metadata.Description}}
{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if .PackageDescriptor.Metadata.Readme}}
{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Readme}}
{{end}} {{end}} {{if .PackageDescriptor.Metadata.Dependencies}}

{{.locale.Tr "packages.dependencies"}}

{{range .PackageDescriptor.Metadata.Dependencies}} {{end}}
{{.locale.Tr "packages.dependency.id"}} {{.locale.Tr "packages.dependency.version"}}
{{.Name}} {{.Req}}
{{end}} {{if .PackageDescriptor.Metadata.Keywords}}

{{.locale.Tr "packages.keywords"}}

{{range .PackageDescriptor.Metadata.Keywords}} {{.}} {{end}}
{{end}} {{end}}