Function bulwark_build::interactive_build_plugin

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

Builds a plugin.

Compiles the plugin with the wasm32-wasi target, and prompts to install 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.