Files
aiongg ac0e369520 ArtCraft: minimal port to craft-libs next (#2957)
ArtCraft moves its three craft-libs pins from `main` to `next`:
`craft-image-codecs`, `craft-update` and `craft-sniff`. This is a
minimal port: only the APIs `next` removed change. ArtCraft uses no
craft-ui, so there is no runtime host, dock or key change here. The egui
app (`artcraft-native`) uses plain eframe and egui 0.36 from crates.io
and is untouched.

The pins name storytold/craft-libs `16001e7210`, which is in craft-libs
`main` since craft-libs#3536.

**What changes**
- Three pins in `Cargo.toml` files (`craft-image-codecs` in the
workspace, `craft-update` in `crates/desktop/artcraft`, `craft-sniff` in
`crates/lib/files/mimetypes`), and eight lines in `Cargo.lock`. No other
package moves.
- `check_for_update` returns `CheckError` on next. The Tauri updater
(`crates/desktop/artcraft/src/updates.rs`) keeps its string errors
through `Display`.
- `craft-sniff` is identical between the pins. `craft-image-codecs`
moves forward 25 commits (PNG metadata, TIFF RGBA16, strict JPEG EXIF
orientation framing, DPX memory); no source change was needed.

**Checked**
- `cargo check --workspace --lib --bins --tests` is clean, including
`artcraft-native` and the Tauri app. It ran against placeholder
pkg-config files for the WebKitGTK, GTK, libsoup and dbus libraries,
because the machine has no development files for them; `check` links
nothing.
- `cargo test -p images -p mimetypes`: images 15/15, mimetypes 16/16.
- Not run: the tests of `artcraft-native` (media cache tests decode and
encode through `craft-image-codecs`) and of the Tauri app (`updates.rs`,
`flip_image.rs`). Both link WebKitGTK, which the machine lacks. CI has
it. The base commit had no test run in CI either, so there is no
baseline.

**Run**
- macOS (`artcraft-native`): start-up, window, close, Cmd+Q, and image
previews with a rotated-EXIF JPEG and a PNG.
- Not checked: DPX previews and the Tauri app, its update check
included.

**Behaviour differences**
- The Tauri update check: a GitHub rate limit now reads "GitHub's
request limit was reached". Other failures read as before.
- Image decoding: preview a JPEG with a rotated EXIF orientation in the
egui app's media cache.

**Decisions**
- No runtime host in `artcraft-native`: it never used craft-ui, so there
is no removed API to replace. Hosting next's runtime would adopt `next`,
which a minimal port excludes.

Size: 4 files, +4 / −4 without `Cargo.lock`.
2026-11-25 15:59:29 -05:00
..
2026-09-11 14:19:51 -04:00