rust

package
v0.2202.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rust contains a Go interface to the Rust build system.

This is needed as certain E2E tests require things to be rebuilt during tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder provides an interface for building Rust runtimes by invoking `cargo`.

func NewBuilder

func NewBuilder(
	env *env.Env,
	teeHardware node.TEEHardware,
	pkg string,
	buildDir string,
	targetDir string,
) *Builder

NewBuilder creates a new builder for Rust runtimes.

func (*Builder) Build

func (b *Builder) Build() error

Build starts the build process.

func (*Builder) ResetEnv

func (b *Builder) ResetEnv()

ResetEnv resets the build-time environment variables.

func (*Builder) SetEnv

func (b *Builder) SetEnv(key, value string)

SetEnv sets a build-time environment variable.

Jump to

Keyboard shortcuts

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