cargo test runs the pdfcraft binary's unit tests in one process. The single-instance socket
tests called launch_profile::prepare, which installs the nightly profile in craft_nightly's
process-wide OnceLock, so tests that ran after them saw a nightly launch: the window icon test
compared the nightly icon with the stable one, and stable_defaults_and_nightly_version_line
found is_nightly() true. The FreeBSD workflow runs plain cargo test and failed this way.
The socket tests now parse and validate the launch the same way, without installing it.
wgpu's OpenGL adapter has no device id and guesses its kind from its
strings: every Intel GPU is "integrated". With no display known (Remote
Desktop), an Intel discrete GPU's OpenGL adapter therefore outranked its own
Direct3D 12 adapter, was declined, and the app fell back to glow although
Direct3D 12 worked (CodeRabbit). An OpenGL adapter now comes after any
other adapter of the same vendor, matched by vendor since OpenGL has no
device id, before kinds are compared. An OpenGL-only GPU still beats the
software adapter, whose vendor is Microsoft.
The test now models wgpu's OpenGL adapters as wgpu reports them: the
vendor's id, device 0 and the guessed kind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pick_adapter ranked adapters without their backend, so a GPU that wgpu
offers through both Direct3D 12 and OpenGL got its Direct3D 12 adapter
only because wgpu lists it first. The backend is now the last part of the
ranking. An OpenGL-only GPU still beats the software adapter by kind, and
the selector then declines it so that glow starts on that GPU.
The test covers Direct3D 12, Vulkan, OpenGL and software adapters, in
both orders and with no display known (FredApps' review).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The selector, which now declines wgpu's OpenGL backend, was only
installed when a display's GPU was found by its PCI ids. A display that
has none, such as Remote Desktop's, left wgpu's own choice in charge,
and that could still pick an OpenGL-only GPU. It now runs on Windows
always; with no display known, pick_adapter ranks adapters by kind, most
frugal first, as wgpu's low-power choice does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Intel HD 2500 or 4000 (Ivy Bridge) has no Direct3D 12 driver, so wgpu
picks its OpenGL backend. That backend fails in Surface::configure a few
seconds after the window opens ("Failed to wait for GPU to come idle"),
after the start-up retry with OpenGL can help, so the app closed with a
white window (#519, #4134, #5553). eframe's own OpenGL renderer works on
the same GPUs, which is the PDFCRAFT_RENDERER=gl workaround.
The adapter selector now declines an adapter on wgpu's OpenGL backend on
Windows, unless WGPU_BACKEND asked for it, so the existing start-up retry
draws with eframe's OpenGL renderer instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases
* chore: update Cargo.lock for rfd dependency in pdfcraft app
* chore: retrigger CI checks
* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy
* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1
* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
On the revision integrated with main's shared atomic writer
(craft::atomic), ordinary extract, split and render write the requested
pages, parts and image size, leave the source byte-for-byte unchanged,
and leave nothing else in the folder. The missing-value regression also
checks that a refused command writes nothing and keeps the source.
`flag(args, "--name")` matched any token, so a value-taking option's
operand was taken for an option. With a password of `--out`,
`extract --password --out in.pdf --pages 1 --out out.pdf` read `in.pdf`
as the output and wrote over the source file.
Add `value_of_flag`, which walks the arguments by the command's option
spec as `validate_options` and `positional` do, and move `info`, `text`,
`combine`, `extract`, `split` and `render` to it. An option left without
an operand at the end of the line is now reported instead of being read
as absent, and a repeated option's last value is the one used.
Fixes#7516
The port (#8160) dropped the result of AppleEvents::connect, the function that drains the Apple-event inbox into the file intake, so 'odoc' and quit events were never delivered. PdfCraftApp keeps it again as os_events, as in v0.22.0, and each frame's logic calls it before it opens the intake. Found by MarcGoudy (#8443).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the craft framework port (#8160):
- Test modules gated by cfg(all(test, not(wasm32))) weren't recognised as tests by
clippy, so their expect/panic calls counted as production code; gate them with
cfg(test) and cfg(not(wasm32)) separately.
- Remove dead test helpers, restore the Windows manifest tests the port dropped,
and fix the remaining lints (redundant clones and casts, unused imports).
- Page Setup on Windows called a main_window_handle() that doesn't exist; parent the
driver dialog to the active window again, as before the port.
* refactor(render): route PDF reading and rendering through shared craft-pdf (storytold/craft-libs#778)
* fix(render): convert u32 raster dimensions to usize for Pixels::zeroed
* fix(render): remove unused hayro_syntax imports in inspect
* fix(render): let shared raster dimensions reject rounded over-budget sizes before allocation
* chore(pdf): repin craft-libs to #2497 and align tests with shared contract
* fix(render): align remaining 8 tests and OutputLimit error with craft-libs contract
* docs(attribution): update ATTRIBUTION.md for shared hayro* dependencies
* docs(attribution): include adobe_data suffix for hayro-cmap in ATTRIBUTION.md
* docs(attribution): sync ATTRIBUTION.md with cargo xtask assets --write
* docs(licenses): update NOTICE hash and hayro-interpret asset licences in LICENSES.toml
---------
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>