rustup

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlanEntryRust = "rust"
)

Variables

This section is empty.

Functions

func AdditionalTarget added in v1.2.0

func AdditionalTarget(cr libpak.ConfigurationResolver, stack string) string

Types

type Build

type Build struct {
	Logger bard.Logger
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type Cargo

type Cargo struct {
	Logger bard.Logger
}

func (Cargo) Contribute

func (c Cargo) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Cargo) Name

func (c Cargo) Name() string

type Detect

type Detect struct {
}

func (Detect) Detect

func (d Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Rust

type Rust struct {
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
	Arguments        []string
	Executor         effect.Executor
	Toolchain        string
	ToolchainSet     bool
	Target           string
	Profile          string
	ProfileSet       bool
	ToolchainFile    string
}

Rust will run `rustup` from the PATH to install a given toolchain

func NewRust

func NewRust(profile, toolchain, target, toolchainFile string, profileSet, toolchainSet bool) Rust

func (Rust) Contribute

func (r Rust) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Rust) Name

func (r Rust) Name() string

type Rustup

type Rustup struct {
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
	Executor         effect.Executor
	Profile          string
}

Rustup will run `rustup-init` from the PATH and install `rustup`

It configures a default toolchain of `none`, so Rust isn't actually installed yet

func NewRustup

func NewRustup(rustupInitVersion string, profile string) Rustup

func (Rustup) Contribute

func (r Rustup) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Rustup) Name

func (r Rustup) Name() string

type RustupInit

type RustupInit struct {
	LayerContributor libpak.DependencyLayerContributor
	Logger           bard.Logger
}

RustupInit will handle installing the `rustup-init` tool & adding it to the PATH

func NewRustupInit

func NewRustupInit(dependency libpak.BuildpackDependency, cache libpak.DependencyCache) RustupInit

func (RustupInit) Contribute

func (r RustupInit) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (RustupInit) Name

func (r RustupInit) Name() string

Jump to

Keyboard shortcuts

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