pub fn build(
cfg: &KitConfig,
plugin_dir: impl AsRef<Path>,
out_dir: impl AsRef<Path>,
options: &PackOptions,
) -> KitResult<PackedAssets>Expand description
Builds a plugin checkout into the two files a release carries.
cfg supplies the naming rules (it is the same KitConfig the host installs
with); plugin_dir is the root of the plugin crate; out_dir is created if needed.
ยงErrors
KitError::CargoNotFound: nocargoonPATH;KitError::NoManifest: noCargo.tomlinplugin_dir;KitError::NoPackage:cargo metadatadid not describe that manifest;KitError::ManifestMissingField/KitError::ManifestParse: the plugin manifest is missing or unreadable;KitError::VersionMismatch: the plugin manifest andCargo.tomldisagree;KitError::BuildFailed/KitError::BuildArtifactMissing: the wrapper build failed or produced nothing loadable;KitError::LibraryLoad/KitError::SymbolMissing: the artifact does not export the entry symbol, so publishing it would produce an unloadable plugin.