Skip to main content

ensure_addon_binary

Function ensure_addon_binary 

Source
pub fn ensure_addon_binary(
    name: &str,
    version: &str,
    asset: &ArtifactAsset,
) -> Result<PathBuf, String>
Expand description

Ensure the prebuilt addon binary for asset is installed in the managed bin dir for name/version, fetching + verifying it if absent. Returns the absolute binary path the gateway must spawn. No-op (pure hash check) when already installed and valid; addons.policy = locked blocks any fetch before network I/O.