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 ¶
func (Build) Build ¶
func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)
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
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
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 (RustupInit) Name ¶
func (r RustupInit) Name() string
Click to show internal directories.
Click to hide internal directories.