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.
Click to show internal directories.
Click to hide internal directories.