koharu-core
Shared utilities used across the Koharu workspace.
download: reqwest client with retry middleware plus helpers for fast HTTP range downloads and Hugging Face Hub fetches (hf_hub), reusing the local cache when possible.image:SerializableDynamicImagewrapper that encodes images as lossless WebP bytes for serde-friendly transfer (IPC, state files) while preserving access to the underlyingDynamicImage.
Examples
// HTTP with range requests and retries
let bytes = http.await?;
// Pull a model file from the HF Hub (cached under ~/.cache/huggingface/hub)
let path = hf_hub.await?;
// Serialize an image
let img = open?;
let blob = to_vec?;
Licensed under Apache-2.0 (../LICENSE-APACHE).