fusepack

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package fusepack holds Go extensions fused into a Piglet Binary. The build copies compatible extension source under exts/ and generates registry_generated.go with lazy factory serve functions. Register installs a FusedResolver so the host loads those extensions in-process (D31).

Stock Pig compiles this package with an empty registry, so Register is a no-op.

Code generated by pig piglet build. DO NOT EDIT.

Stock Pig ships this file empty. A Piglet Binary build may temporarily generate imports for compatible extension packages and restores this file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FusedConfigs

func FusedConfigs() []subprocess.ExtConfig

FusedConfigs returns a name-only ExtConfig for each fused extension so the startup loader includes them even though their source is not on this machine. LoadAll routes these to LoadInProcess (no source needed). A richer piglet or CLI config for the same name still wins the config merge. Empty in stock pig.

func HostHelpers

func HostHelpers() *sdk.HostHelpers

HostHelpers are the host's parsers and file mutation queue for a fused extension. Its factory runs in this process, before any connection to the host exists, so the SDK's frontmatter and Date.parse helpers call them directly, and its withFileMutationQueue is the process-wide queue the built-in edit and write tools use.

func Register

func Register()

Register installs the fused-extension resolver if this Piglet Binary compiled any in. No-op in stock pig (empty map), so the subprocess cell path is unaffected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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