Skip to content

refactor(instance): make profile.rs a directory module, split by method - #12

Merged
MotherSphere merged 1 commit into
mainfrom
refactor/instance-profile
Aug 4, 2026
Merged

refactor(instance): make profile.rs a directory module, split by method#12
MotherSphere merged 1 commit into
mainfrom
refactor/instance-profile

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

The cut runs inside the 800-line impl Profile, so the inventory check is function-level this time: 89 before, 89 after, none lost. settings.rs deliberately untouched - PR #7 and #8 both edit it. Workspace green, clippy clean.

profile.rs was one 800-line impl Profile plus its satellites. The unit of the
move is the METHOD here - Rust allows inherent impls across files, so each
concern gets its own impl Profile block beside the free items it owns:

  profile.rs    91   Profile and SaveEntry themselves, the path roots
  modlist.rs   385   modlist.txt round-trip, ListTrust, lifecycle
  plugins.rs   350   plugins.txt, the locked order, snapshot + loss guard
  inis.rs      327   seeding, deploy, capture, the reversible tweaks
  saves.rs     236   enumeration, co-saves, crash-artifact detection
  tests.rs     889   the unit tests, file-backed

settings.rs deliberately untouched: PR #7 and PR #8 both edit it, and a move
now would conflict with both.

Verified at the level the cut happened: 89 functions before, 89 after, none
lost and none invented. Workspace suite green, clippy clean.
@MotherSphere
MotherSphere merged commit 730311d into main Aug 4, 2026
5 of 6 checks passed
@MotherSphere
MotherSphere deleted the refactor/instance-profile branch August 4, 2026 15:16
@github-actions github-actions Bot mentioned this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant