Files
photocraft/scripts/engine_split/crates.tsv
T
aiongg 4653c2a2a3 Engine split scripts: step 8 crate map, review fixes, move_tests appends and copies only what moved tests use
crates.tsv: the vector cut moves 13 command modules; the 11 shared engines
(float, frame, slice, symmetry, transform, type, type_extra, type_spell, warp,
smart, vector) map to model and stay in core until step 12; notes'
stored-values tests move with notes.

engine_cut.py: super:: paths are rewritten only at a moved file's own depth;
trait imports are added per module scope; import names come from whole use
trees; branch moves TABLES entries into the crate's install.rs before removing
them from core and finishes the moved files at their new paths; a widened name
keeps its use statement's cfg; single-name groups widen as whole imports;
re-exports from lib.rs resolve from the crate root.

move_tests.py: an existing target module gets the new tests appended (in a
module of their own when a name would clash or the file is organised by
source file); helpers are copied as written, and only those the moved tests
name unqualified; trait imports stay only when a method of the trait is
called; path rewrites skip string literals; ci-test-times remaps only this
run's tests, without duplicate rows; list reads the crate's spec functions for
its ids, ignores ids whose result is dropped, and lists test functions at the
top of production files, which move without their production siblings;
test-module parents are found inside inline modules; cleanup touches only the
modules the move emptied and keeps those other code names; --previous needs
--old-ref.

install_tables.py matches a table's full module path to its crate;
table_fragments.py reports a branch-added entry whose handler is in a crate the
predecessor's fragment can't reach.
2026-11-23 22:41:12 +00:00

4.2 KiB

1# Engine split (photocraft#15710): the crate each engine module goes to. A unit is a module of
2# crates/engine-core/src: `cmd/<name>` for one declared in cmd.rs, `<name>` for one declared in lib.rs.
3# Its files are the module's file and every file its `mod` declarations reach. scripts/engine_split/engine_cut.py reads it. A module not listed stays in core.
4unitcrate
5actions_recordcore
6adjust_paramsmodel
7allocationcore
8build_infocore
9canvas_geommodel
10channel_clipmodel
11clip_groupcore
12cmd/actions_cmdsfiles
13cmd/actions_edit_cmdsfiles
14cmd/adjust_cmdsimage
15cmd/adjust_paramsmodel
16cmd/adjustment_brush_cmdspaint
17cmd/adjustment_brush_cmds_testspaint
18cmd/align_cmdsvector
19cmd/analysis_cmdsimage
20cmd/artboard_cmdsmodel
21cmd/atn_cmdsfiles
22cmd/automate_cmdsfiles
23cmd/background_cmdsmodel
24cmd/brush_cmdspaint
25cmd/brush_key_cmdspaint
26cmd/brush_preset_cmdsstore
27cmd/channel_cmdsmodel
28cmd/color_cmdsmodel
29cmd/color_to_alpha_cmdsimage
30cmd/comps_cmdsvector
31cmd/contour_lib_cmdsstore
32cmd/cutout_cmdsimage
33cmd/distort_cmdsimage
34cmd/document_preset_cmdsstore
35cmd/edit_cmdsmodel
36cmd/edit_menu_cmdsimage
37cmd/enabledcore
38cmd/eraser_cmdspaint
39cmd/export_preset_cmdsstore
40cmd/exr_cmdsfiles
41cmd/extra_cmdsimage
42cmd/face_cmdspaint
43cmd/file_cmdsfiles
44cmd/fill_cmdspaint
45cmd/fill_key_cmdspaint
46cmd/float_cmdsmodel
47cmd/font_library_cmdsstore
48cmd/frame_cmdsmodel
49cmd/fx_view_cmdsstore
50cmd/fx_visibility_cmdsstore
51cmd/gallery_cmdsimage
52cmd/gradient_fill_cmdsstore
53cmd/group_view_cmdsimage
54cmd/history_cmdsmodel
55cmd/history_menu_cmdsmodel
56cmd/history_options_cmdsmodel
57cmd/history_select_cmdsmodel
58cmd/history_source_cmdsmodel
59cmd/image_cmdsimage
60cmd/layer_copy_cmdsmodel
61cmd/layer_css_cmdsvector
62cmd/layer_label_cmdsimage
63cmd/layer_list_cmdsimage
64cmd/layer_mask_props_cmdsimage
65cmd/layer_menu_cmdsimage
66cmd/layer_multi_cmdsmodel
67cmd/layer_nav_cmdsimage
68cmd/layer_paramscore
69cmd/layer_referencescore
70cmd/layer_xmp_cmdsvector
71cmd/lens_cmdsimage
72cmd/magnetic_cmdsimage
73cmd/mask_view_cmdsmodel
74cmd/migrate_cmdsstore
75cmd/mode_cmdsimage
76cmd/multichannel_cmdsimage
77cmd/notes_cmdsvector
78cmd/opscore
79cmd/paint_cmdspaint
80cmd/paramscore
81cmd/path_edit_cmdsvector
82cmd/pattern_cmdsstore
83cmd/pattern_fill_cmdsstore
84cmd/perspective_crop_cmdsimage
85cmd/photo_cmdsimage
86cmd/pick_cmdspaint
87cmd/plugin_cmdsimage
88cmd/preset_import_cmdsstore
89cmd/print_cmdsfiles
90cmd/rasterize_style_cmdsvector
91cmd/redeye_cmdspaint
92cmd/render_cmdsimage
93cmd/retouch_cmdspaint
94cmd/sample_cmdsmodel
95cmd/sampler_cmdspaint
96cmd/select_extra_cmdsimage
97cmd/selection_cmdsimage
98cmd/slice_cmdsmodel
99cmd/smart_cmdsmodel
100cmd/smart_svg_cmdsvector
101cmd/smartselect_cmdsimage
102cmd/solid_fill_cmdsstore
103cmd/stamp_cmdspaint
104cmd/style_asl_cmdsstore
105cmd/swatch_cmdsstore
106cmd/symmetry_cmdsmodel
107cmd/timeline_cmdsfiles
108cmd/transform_cmdsmodel
109cmd/trap_cmdsvector
110cmd/type_area_cmdsvector
111cmd/type_caret_cmdsvector
112cmd/type_cmdsmodel
113cmd/type_extra_cmdsmodel
114cmd/type_mask_cmdsvector
115cmd/type_spell_cmdsmodel
116cmd/type_styles_cmdsvector
117cmd/variables_cmdsfiles
118cmd/vector_clipboardmodel
119cmd/vector_cmdsmodel
120cmd/video_cmdsfiles
121cmd/vp_cmdsimage
122cmd/warp_cmdsmodel
123cmd/web_cmdsfiles
124cmd/wia_cmdsfiles
125color_channelsmodel
126command_hintscore
127crop_fillimage
128display_colormodel
129doc_pathcore
130doc_statecore
131errorcore
132filtersimage
133filters_extimage
134group_optionscore
135guide_layoutcore
136hidden_targetcore
137inspectcore
138installed_profilescore
139jobscore
140keymap_defsstore
141layer_placecore
142layer_stylestore
143link_watchmodel
144malloc_tuningcore
145memorycore
146memory_gatecore
147new_layercore
148param_checkcore
149pixelscore
150prefsstore
151preset_storestore
152presetsstore
153proof_simmodel
154scratchcore
155select_mask_editsimage
156sessioncore
157shell_commandscore
158shortcut_setsstore
159snapcore
160cmd/table/paintpaint
161cmd/table/imageimage
162cmd/table/modelmodel
163cmd/table/storestore
164pixel_fillcore
165content_samplingmodel
166brush_defsstore
167brush_clear_background_testspaint
168brush_pressure_size_default_testspaint
169eraser_gray_background_testspaint
170pencil_auto_erase_exact_testspaint
171mixer_indexed_bitmap_testspaint
172mixer_toggle_commands_testspaint
173cmd/gradient_alpha_method_testspaint
174cmd/notes_stored_values_testsvector
175action_historycore
176damagecore
177slotscore
178statecore
179installcore
180registrycore
181hookscore