rustbin

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunKonaNative added in v1.18.0

func RunKonaNative(t require.TestingT, logger log.Logger, vmConfig *vm.Config, dir string, inputs *utils.LocalGameInputs) bool

RunKonaNative runs kona-host in --native mode. Returns false if kona disagrees and true otherwise.

Types

type Spec

type Spec struct {
	SrcDir  string // directory name relative to monorepo root, e.g. "rollup-boost"
	Package string // cargo package name, e.g. "rollup-boost"
	Binary  string // binary name, e.g. "rollup-boost"
}

Spec describes a Rust binary to be built and located.

func (Spec) EnsureExists

func (s Spec) EnsureExists(ctx context.Context, logger log.Logger) (string, error)

EnsureExists locates or builds a Rust binary as needed.

Env var overrides (suffix derived from binary name, e.g. "rollup-boost" -> "ROLLUP_BOOST"):

  • RUST_BINARY_PATH_<BINARY>: absolute path to pre-built binary (skips build, must exist)
  • RUST_SRC_DIR_<BINARY>: overrides SrcDir (absolute path to cargo project root)

Build behavior:

  • RUST_JIT_BUILD=1: runs cargo build in debug mode (letting cargo handle rebuild detection)
  • Otherwise: only checks binary exists, errors if missing

Jump to

Keyboard shortcuts

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