compiler

package
v0.15.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileFFI added in v0.15.20

func CompileFFI(sierra *starknet.SierraClass) (*starknet.CasmClass, error)

CompileFFI performs Sierra-to-CASM compilation via direct CGo FFI.

Types

type Compiler added in v0.15.20

type Compiler interface {
	Compile(ctx context.Context, sierra *starknet.SierraClass) (
		*starknet.CasmClass, error,
	)
}

Compiler compiles Sierra classes to CASM.

func New added in v0.15.20

func New(
	maxConcurrent uint,
	binaryPath string,
	log utils.StructuredLogger,
) Compiler

New creates a Compiler that runs Sierra-to-CASM compilation in isolated child processes with concurrency control. The caller's context controls the compilation deadline.

func NewUnsafe added in v0.15.20

func NewUnsafe() Compiler

NewUnsafe returns a Compiler that compiles in the same process Juno is running. It can be unsafe if the compilation process get stuck.

Jump to

Keyboard shortcuts

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