Skip to main content

fetch

Function fetch 

Source
pub fn fetch(
    manifest_path: &Path,
    cache_search_start: &Path,
    force: bool,
) -> Result<FetchSummary, Vec<String>>
Expand description

Populates .cache/guicons/... for every iconify/url entry in the manifest. cache_search_start should be the current directory in practice (see main.rs) - it’s a parameter rather than read internally so tests can point it at a tempdir instead of the real process cwd. It must match whatever guicons-build’s codegen uses so a fetch here and a later cargo build agree on where the icon lives.