rust

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2019 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Dependency  = "rustup"
	Cache       = "rust_cache"
	TargetDir   = "target"
	RegistryDir = "registry"
)

Variables

View Source
var (
	CargoHome = filepath.Join(os.Getenv("HOME"), ".cargo")
	CargoBin  = filepath.Join(CargoHome, "bin", "cargo")
)
View Source
var CargoToml string

Functions

This section is empty.

Types

type Contributor

type Contributor struct {
	CacheMetadata Metadata
	// contains filtered or unexported fields
}

func NewContributor

func NewContributor(context build.Build, manager PackageManager) (Contributor, bool, error)

func (Contributor) Contribute

func (c Contributor) Contribute() error

type Logger

type Logger interface {
	Info(format string, args ...interface{})
}

type Metadata

type Metadata struct {
	Name string
	Hash string
}

func (Metadata) Identity

func (m Metadata) Identity() (name string, version string)

type PackageManager

type PackageManager interface {
	Install(location string, layer layers.Layer, cacheLayer layers.Layer) error
}

type Runner

type Runner interface {
	Run(bin, dir string, args ...string) error
}

type Rust

type Rust struct {
	Runner Runner
	Logger Logger
}

func (Rust) Install

func (r Rust) Install(location string, layer layers.Layer, cacheLayer layers.Layer) error

Jump to

Keyboard shortcuts

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