mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-01 02:36:02 +01:00
Addresses review: between the existence check and the stream write, another process could delete or rename the target, and the write would then recreate it as an empty file. The target is now opened without FILE_SHARE_DELETE, so it can't be deleted or renamed until the zone is written, and the check reads that handle's metadata. Refs #8622
pdfcraft-platform
Layer L7 holds operating-system services that both the desktop app (pdfcraft-ui-egui) and the automation tools (pdfcraft-automation) need. Those two crates sit on the same layer and can't depend on each other, so a helper they share lives here instead of being copied into each (xtask/src/layers.rs allows both edges). It has no UI dependencies; macOS filesystem calls use the safe rustix wrapper.