Skip to main content

resolve_binary

Function resolve_binary 

Source
pub async fn resolve_binary(
    source: &BinarySource,
    install_dir: &Path,
    progress: &dyn ProgressReporter,
) -> Result<ResolvedBinary>
Expand description

Resolve a node binary from the given source.

Returns a ResolvedBinary containing the binary path, version string, and an optional path to bootstrap_peers.toml if one was found alongside the binary.

For LocalPath, validates the binary exists and extracts version. For download variants (Latest, Version, Url), downloads and caches the binary in install_dir.