Files
lightcraft/crates/fetch
Dylan M. Taylor f3aa598c69 pipeline, raw, inpaint: delegate extracted #587 modules to craft-develop (#4656)
* pipeline, raw, inpaint: delegate extracted #587 modules to craft-develop

* raw: fix craft_raw ColorData/RawImage bridge and opcode test imports

* raw: remove unused to_craft_mat3 in bridge

* pipeline: fix craft-develop bridge, Cargo.toml, Planes Clone, and light_v3 tests

* pipeline: remove unused is_bw, from_craft_mat3, and srgb_to_linear

* raw, pipeline: preserve lightcraft_geom::Orientation in SourcePlacement

* pipeline: use camera-space wb_matrix_for in white_balance and scene_linear_pre

* pipeline: forward masks and LocalAdjustments in to_craft_settings

* pipeline: fill remaining LocalAdjustments fields in bridge
2026-11-22 16:57:48 -05:00
..

lightcraft-fetch

Native model downloads in pure Rust (L0, Apache-2.0): HTTP/1.1 over std sockets and rustls with the RustCrypto provider, without ring, aws-lc, C or assembly build dependencies. The wasm32 crate is empty.

Call download with bounded file specifications and ordered mirrors, or download_url for an exact catalog URL (including its query). Each file has a local filename independent of the URL, a size cap and optional pinned size/SHA-256. Transfers resume pinned .part files, verify before renaming, report progress and check cancellation during reads. Run on a worker thread. No proxy support; DNS resolution uses the platform resolver. Tokens are off by default and never forwarded to a different redirect host. A redirect from https to http is refused.

Tests use local synthetic HTTP servers for redirects, resume, truncation, cancellation, stalls, hashes, size limits and hostile specifications; they make no internet requests.