Skip to main content

fetch_coverage_map

Function fetch_coverage_map 

Source
pub async fn fetch_coverage_map(
    platform: &str,
    arch: &str,
) -> Result<CoverageMap>
Expand description

Fetch the advisory per-arch coverage map from the RepoSources Pages artifact ({pages}/coverage/{platform}_{arch}.json).

platform/arch take the crate’s tokens ("macos"/"windows", "arm64"/"x86_64"). The map lags writes by a Pages build; treat it as a hint, never a gate.

§Errors

Returns ToolchainError::RegistryError on a transport failure, a non-success HTTP status (including 404 — no map published yet for that platform/arch), or an unparseable body.