pub async fn try_install_from_prebuilt(
manifest: &PluginManifest,
plugin_dir: &Path,
) -> Result<PathBuf, PrebuiltError>Expand description
Try to install the extension binary from
crate::extensions::manifest::ExtensionManifest::prebuilt for
the current host. Lookup is by host_triple.
On success: downloads the URL, verifies the SHA-256, extracts
the archive into plugin_dir, then runs
verify_extension_command to confirm the layout was correct.
Returns Ok(Some(path)) pointing at the resolved binary.
On Err(PrebuiltError::NoMatchingAsset): no entry for this host
— caller should fall back to the setup script.
On any other Err: surface to the user; do not silently fall
back to the setup script (a checksum failure could mean tampering;
a network failure means the user wanted prebuilt and should know).