rust

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Builder{}

Default builder instance.

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder is golang builder.

func (*Builder) AllowConcurrentBuilds

func (b *Builder) AllowConcurrentBuilds() bool

AllowConcurrentBuilds implements build.ConcurrentBuilder.

func (*Builder) Build

func (b *Builder) Build(ctx *context.Context, build config.Build, options api.Options) error

Build implements build.Builder.

func (*Builder) Dependencies

func (b *Builder) Dependencies() []string

Dependencies implements build.DependingBuilder.

func (*Builder) Parse

func (b *Builder) Parse(target string) (api.Target, error)

Parse implements build.Builder.

func (*Builder) Prepare

func (b *Builder) Prepare(ctx *context.Context, build config.Build) error

Prepare implements build.PreparedBuilder.

func (*Builder) WithDefaults

func (b *Builder) WithDefaults(build config.Build) (config.Build, error)

WithDefaults implements build.Builder.

type Target

type Target struct {
	// The Rust formatted target (arch-vendor-os-env).
	Target      string
	Os          string
	Arch        string
	Vendor      string
	Environment string
}

Target is a Rust build target.

func (Target) Fields

func (t Target) Fields() map[string]string

Fields implements build.Target.

func (Target) String

func (t Target) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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