Documentation
¶
Overview ¶
Package cargo contains helper functions for building Rust applications using cargo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependency ¶ added in v0.10.4
Dependency is the metadata about a dependency.
func (*Dependency) HasFeature ¶ added in v0.10.4
func (d *Dependency) HasFeature(feature string) bool
HasFeature returns true iff the given feature is present among the features.
type Metadata ¶
type Metadata struct { Name string Version string Dependencies []Dependency }
Metadata is the cargo package metadata.
func GetMetadata ¶
GetMetadata queries `cargo` for metadata of the package in the current working directory.
func (*Metadata) FindDependency ¶ added in v0.10.4
func (m *Metadata) FindDependency(name string) *Dependency
FindDependency finds the first dependency with the given name and returns it. Iff no such dependency can be found, it returns nil.
Click to show internal directories.
Click to hide internal directories.