Step 7 of the engine split (#15710) moves the paint commands into their own
crate. These test changes land first, so the cut moves code and tests as they
are:
- photocraft-engine-core gets a `failpoints` feature (no default) that compiles
the allocation failpoints outside core's own test build; the paint crate's
dev-dependency on core will turn it on, so its allocation-failure tests keep
their injected failures. `allocation` is a public module and the two arming
functions are public under the feature.
- Core tests whose subject is core but whose setup ran a paint command set the
pixels through the document (`tests::fill_active`) or use a core command:
channel copy/paste/clear, Edit > Fade (setup: Invert), Actions import and
playback, patterns, file revert/save/flatten, layer-style rasterize, tone
targets, brush tip loading from the preset store, the filter mask target.
- Tests whose subject is a paint command move beside it: Edit > Fill's result
reservation failure (fill_cmds), and the filter-mask brush stroke
(brush_cmds/filter_mask_stroke_tests.rs); the filter mask save check stays in
core with the mask set through the document.
- The sampler turn test spells out the expected coordinates instead of using a
private core helper; the job cleanup test sets the live commit directly
instead of through the Mixer Brush; the ignored fill timing drops its
comparison with a private helper.
- The .atn table check accepts the paint commands it names when they are not
installed.
No behaviour change in the app.
Part of #15710
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).
The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.
Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.
Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.
Part of #15710
python3 scripts/engine_split/crate_shell.py split, then rustfmt on the files it edited.
The sources and the manifest move to crates/engine-core; core's tests start from
crate::session() (1,673 sites), 32 tests that read the registry first install with
crate::install(), and 12 Session imports the rewrite left unused are dropped.