compiler

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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