Skip to main content

get_toolchain_asset_url

Function get_toolchain_asset_url 

Source
pub async fn get_toolchain_asset_url(
    client: &Client,
    target: String,
) -> Result<String>
Expand description

Find the toolchain asset for the given target in the GitHub releases API and return its API download URL. Using the API URL (with Accept: application/octet-stream) instead of the browser download URL ensures authentication works correctly, including for draft releases.