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§
- Pack
Result - Result of packing a package, including any warnings.
- Package
Header - Fixed header fields that every package manifest must have.
- Package
Manifest - A parsed package manifest, generic over the host-defined metadata schema.
- Python
Package Meta - Fields under the
[python]section ofpackage.toml. Required whenpackage.runtime == "python", rejected otherwise. - Unpack
Options - Options controlling archive extraction safety limits.
- Wasm
Package Meta - Fields under the
[wasm]section ofpackage.toml. Required whenpackage.runtime == "wasm", rejected otherwise.
Enums§
- Package
Error - Errors that can occur when loading a package manifest.
- Package
Runtime - Plugin runtime kind. Determines which loader the host’s
PluginHostdispatches to.
Functions§
- load_
manifest - Load and parse a
package.tomlmanifest from a package directory. - load_
manifest_ untyped - Load a manifest validating only the fixed header (accepting any metadata).
- pack_
package - Create a
.fidarchive (tar + bzip2) from a package directory. - package_
digest - Compute a deterministic SHA-256 digest over all package source files.
- unpack_
package - Extract a
.fidarchive (tar + bzip2) to a destination directory using strict safety defaults. - unpack_
package_ with_ options - Extract a
.fidarchive with caller-provided safety limits.