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: 0

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