Skip to main content

ensure_binary

Function ensure_binary 

Source
pub fn ensure_binary(
    version: &str,
    opts: &EnsureOptions,
) -> LauncherResult<PathBuf>
Expand description

Ensure the platform binary is present and return the launcher path, downloading + verifying + extracting + caching on first use.

SHA-256 verification is always performed when downloading — it cannot be skipped by external callers.

After a successful install the cache is pruned: only the current version directory (and at most one previous) is kept; stale .part temp files are removed.