Documentation ¶
Index ¶
Constants ¶
View Source
const PropertyYanked = "cargo.yanked"
Variables ¶
View Source
var ( ErrInvalidName = errors.New("package name is invalid") ErrInvalidVersion = errors.New("package version is invalid") )
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct { Name string `json:"name"` Req string `json:"req"` Features []string `json:"features"` Optional bool `json:"optional"` DefaultFeatures bool `json:"default_features"` Target *string `json:"target"` Kind string `json:"kind"` Registry *string `json:"registry"` Package *string `json:"package"` }
type Metadata ¶
type Metadata struct { Dependencies []*Dependency `json:"dependencies,omitempty"` Features map[string][]string `json:"features,omitempty"` Authors []string `json:"authors,omitempty"` Description string `json:"description,omitempty"` DocumentationURL string `json:"documentation_url,omitempty"` ProjectURL string `json:"project_url,omitempty"` Readme string `json:"readme,omitempty"` Keywords []string `json:"keywords,omitempty"` Categories []string `json:"categories,omitempty"` License string `json:"license,omitempty"` RepositoryURL string `json:"repository_url,omitempty"` Links string `json:"links,omitempty"` }
Metadata represents the metadata of a Cargo package
Click to show internal directories.
Click to hide internal directories.