Skip to main content

Module package

Module package 

Source
Expand description

Source package manifest types and parsing.

A package is a directory containing plugin source code and a package.toml manifest. The manifest has a fixed header (name, version, interface) and an extensible [metadata] section validated via serde against a host-defined schema type.

Structs§

PackResult
Result of packing a package, including any warnings.
PackageHeader
Fixed header fields that every package manifest must have.
PackageManifest
A parsed package manifest, generic over the host-defined metadata schema.

Enums§

PackageError
Errors that can occur when loading a package manifest.

Functions§

load_manifest
Load and parse a package.toml manifest from a package directory.
load_manifest_untyped
Load a manifest validating only the fixed header (accepting any metadata).
pack_package
Create a .fid archive (tar + bzip2) from a package directory.
package_digest
Compute a deterministic SHA-256 digest over all package source files.
unpack_package
Extract a .fid archive (tar + bzip2) to a destination directory.