lightcraft/crates
Brandon Thomas 1ef74a787d Never crash: move the one unsafe FFI call into crates/sysmem
The macOS malloc_zone_pressure_relief call (returns freed allocator pages
after raw decodes) lived in identical copies inside the desktop app and the
CLI. It now lives in lightcraft-sysmem, an isolated L0 helper crate and the
workspace's only crate allowed unsafe: one #[allow(unsafe_code)] module, a
SAFETY comment, a safe API that returns bytes released (0 off macOS), and
tests (repeat calls, release after large frees, concurrent calls). Both apps'
alloc_release.rs now just install the safe hook, and their crate roots gain
#![forbid(unsafe_code)], so every production crate except sysmem forbids it.
AGENTS.md/CLAUDE.md name the exception, per craftrules standards/never-crash.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 02:06:08 -04:00
..
catalog Issue #37: Catalog: compact the log on a background thread with ordered journal boundaries 2026-10-04 16:01:28 -04:00
codecs Merge pull request #54 from storytold/pr/never-crash-codecs-catalog 2026-10-04 14:23:05 -04:00
color Never crash: color, geom, raster, develop, scenes, preview, pipeline 2026-10-04 12:34:53 -04:00
develop Never crash: color, geom, raster, develop, scenes, preview, pipeline 2026-10-04 12:34:53 -04:00
engine Merge main into fix/issue-29-move-import 2026-10-04 16:15:25 -04:00
geom Never crash: color, geom, raster, develop, scenes, preview, pipeline 2026-10-04 12:34:53 -04:00
gpu Never crash: gpu and merge free of panicking calls 2026-10-04 12:34:53 -04:00
mcp Issue #29: Import: Move mode with rename and template folders 2026-10-04 15:39:30 -04:00
merge Never crash: gpu and merge free of panicking calls 2026-10-04 12:34:53 -04:00
meta Merge main into feat/gpx-tracklog 2026-10-04 15:31:45 -04:00
pipeline Merge pull request #56 from storytold/pr/never-crash-core 2026-10-04 14:23:22 -04:00
preview Merge pull request #56 from storytold/pr/never-crash-core 2026-10-04 14:23:22 -04:00
raster Merge pull request #56 from storytold/pr/never-crash-core 2026-10-04 14:23:22 -04:00
raw Merge pull request #53 from storytold/pr/never-crash-raw-tiff 2026-10-04 14:22:47 -04:00
scenes Never crash: color, geom, raster, develop, scenes, preview, pipeline 2026-10-04 12:34:53 -04:00
sysmem Never crash: move the one unsafe FFI call into crates/sysmem 2026-10-05 02:06:08 -04:00
tiff Merge pull request #53 from storytold/pr/never-crash-raw-tiff 2026-10-04 14:22:47 -04:00
ui-egui Merge main into fix/issue-29-move-import 2026-10-04 16:15:25 -04:00