Function bulwark_build::build_plugin

source ยท
pub fn build_plugin(
    path: impl AsRef<Path>,
    output: impl AsRef<Path>,
    additional_args: &[String],
    install_missing: bool,
) -> Result<(), BuildError>
Expand description

Builds a plugin.

Compiles the plugin with the wasm32-wasi target, and installs it if it is missing. Uses an embeded adapter WASM file to adapt from preview 1 to preview 2 for the component model.

Calls out to cargo via Command, so cargo must be available on the path for this function to work.