Skip to main content

install

Function install 

Source
pub fn install(
    index_path: &Path,
    name: &str,
    version: Option<&str>,
    dest_dir: &Path,
    trust_root: Option<&Path>,
) -> Result<InstallReport, String>
Expand description

Install a plugin from the registry into dest_dir.

Verifies the SHA-256 against the index; when trust_root is given the entry MUST carry a signature and it is verified against the trust root. On success writes <name>.wasm (+ <name>.sig when signed) into dest_dir.