Files
photocraft/crates/ipp
David MannandClaude Opus 5.5 ef6b794a24 Repin craft-libs next at 77c7c623; panel bodies replay on a hover; versions follow review (#16145)
craft-libs 77c7c623 brings storytold/craft-libs#2830 (#2812: panels and
widgets read the modifiers, not the pointer frame) and #2860
(RasterDisplay::region_fill). With it a canvas hover replays every
panel body, and the hover trial now requires that.

Versions, from the review:
- every version holds the preferences' revision: Preferences' Apply and
  OK and other prefs writers run no counted command (units on the
  options bar and Info panel);
- the Navigator's version holds the adjustment preview its picture
  shows, as the Histogram's does;
- the Histogram's version holds when its histograms landed, since the
  worker lands them with no command or revision;
- the options bar's version holds whether a canvas gesture runs (the
  symmetry menu's Transform entry);
- Home counts as the Properties panel not shown, so its Reset session
  starts anew after a Home visit.

The chrome trials look at the whole frame (a view that ran in a
discarded pass and replayed in the last counts as run); the language
check counts the tab rows frame-wide, since the new titles take a
second pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 18:39:00 +01:00
..

photocraft-ipp

A small IPP (Internet Printing Protocol, RFC 8010/8011) client for the local CUPS server, in pure Rust with no dependencies. It does in-process what lp does from the command line, so PhotoCraft can print where there is no lp binary (a Flatpak sandbox with --socket=cups, a minimal container) and can read the printer list and the default printer first instead of handing CUPS's errors to the user.

let ep = photocraft_ipp::Endpoint::detect().ok_or("no CUPS server")?;   // socket, then localhost:631
let printers = photocraft_ipp::printers(&ep)?;                            // name, info, state, default
let id = photocraft_ipp::print_job(&ep, &photocraft_ipp::Job { printer: "Office", title: "photo", user: "me", copies: 2, document: &pdf, format: "application/pdf" })?;

Three operations: CUPS-Get-Printers, CUPS-Get-Default, Print-Job. HTTP/1.1 over the CUPS domain socket (/run/cups/cups.sock, or CUPS_SERVER as a path) or TCP (localhost:631, or CUPS_SERVER as host[:port]), chunked replies included. Replies are capped at 16 MiB and parsed with bounds checks; an IPP error status becomes Error::Status with the server's own message. Tests run against an in-process fake server over TCP and a Unix socket.

Standalone: it depends on no other PhotoCraft crate. Used by photocraft-engine's print commands on Unix; Windows printing lives in photocraft-winprint.