Function nih_plug_xtask::bundle

source ·
pub fn bundle(package: &str, args: &[String], universal: bool) -> Result<()>
Expand description

Bundle a package that was previously built by a call to build() using the provided cargo build arguments. These two functions are split up because building can be done in parallel by Cargo itself while bundling is sequential. Options from the bundler.toml file in the workspace’s root are respected (see https://github.com/robbert-vdh/nih-plug/blob/master/bundler.toml). This requires the current working directory to have been set to the workspace’s root using chdir_workspace_root().

If the package also exposes a binary target in addition to a library (or just a binary, in case the binary target has a different name) then this will also be copied into the bundled directory.

Normally this respects the --target option for cross compilation. If the universal option is specified instead, then this will assume both x86_64-apple-darwin and aarch64-apple-darwin have been built and it will try to lipo those together instead.