tsparser

package
v1.58.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileInput

type CompileInput struct {
	Host   HostInfo
	Target Platform

	// The cargo 'target' directory to use for compiled outputs.
	CargoTargetDir FSPath

	// The path to the macOS SDK. Only needed when cross-compiling to macOS
	// from another OS; native macOS builds use the Xcode toolchain.
	CrossMacSDKPath option.Option[FSPath]

	// Version string to embed in the binary.
	Version string

	// True if it should be built with `--release`.
	ReleaseBuild bool

	// True if the output is for distribution, as opposed to
	// only running on the host machine (or running tests).
	//
	// Ensures the output is compatible with common glibc versions,
	// for example.
	ForDistribution bool
}

type CompileOutput

type CompileOutput struct {
	// Path to the built tsparser binary.
	TSParserBinary FSPath
}

func Compile

func Compile(ctx context.Context, in CompileInput) (*CompileOutput, error)

Compile compiles the tsparser binary.

Jump to

Keyboard shortcuts

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