Help us shape the future of Go! Take the 2026 Go Developer Survey

cargo

package
v3.1.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadPackageFile

func DownloadPackageFile(ctx *context.Context)

DownloadPackageFile serves the content of a package

func EnumeratePackageVersions

func EnumeratePackageVersions(ctx *context.Context)

func RepositoryConfig

func RepositoryConfig(ctx *context.Context)

https://rust-lang.github.io/rfcs/2789-sparse-index.html

Types

type OwnerUser

type OwnerUser struct {
	ID    int64  `json:"id"`
	Login string `json:"login"`
	Name  string `json:"name"`
}

type Owners

type Owners struct {
	Users []OwnerUser `json:"users"`
}

type SearchResult

type SearchResult struct {
	Crates []*SearchResultCrate `json:"crates"`
	Meta   SearchResultMeta     `json:"meta"`
}

type SearchResultCrate

type SearchResultCrate struct {
	Name          string `json:"name"`
	LatestVersion string `json:"max_version"`
	Description   string `json:"description"`
}

type SearchResultMeta

type SearchResultMeta struct {
	Total int64 `json:"total"`
}

type StatusMessage

type StatusMessage struct {
	Message string `json:"detail"`
}

type StatusResponse

type StatusResponse struct {
	OK     bool            `json:"ok"`
	Errors []StatusMessage `json:"errors,omitempty"`
}

https://doc.rust-lang.org/cargo/reference/registries.html#web-api

Source Files

  • cargo.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL