Skip to main content

build_wasm_canisters

Function build_wasm_canisters 

Source
pub fn build_wasm_canisters(
    workspace_root: &Path,
    target_dir: &Path,
    packages: &[&str],
    cargo_profile_args: &[&str],
    extra_env: &[(&str, &str)],
)
Expand description

Build one or more Wasm canisters into the provided target directory.

cargo_profile_args accepts Cargo flags such as --release. extra_env applies only to the child Cargo process and does not mutate the current process environment.

ยงPanics

Panics when Cargo cannot be launched or returns a failing status.