refactor(core): split oversized runtime.rs into focused modules

Break the ~1.7k-line runtime orchestration unit into facade, share,
receive, lifecycle, and provider modules so future send/receive work
stays reviewable. Behavior and UniFFI surface are unchanged.
This commit is contained in:
2026-07-12 19:27:05 +02:00
parent f835b68b95
commit a63c64a525
8 changed files with 1871 additions and 1764 deletions

View File

@@ -12,7 +12,7 @@ the production API:
- `handshake.rs`: malformed protocol response handling.
- `limits.rs`: core-limit validation.
- `repository.rs`: schema, persistence, and transition invariants.
- `runtime.rs`: public error mapping and runtime orchestration.
- `runtime.rs`: public error mapping and orchestration (mirrors `src/runtime/`).
- `secret.rs`: node identity persistence and file permissions.
- `ticket.rs`: ticket encoding, parsing, and metadata validation.
- `transfer_state.rs`: persisted enum parsing and legal lifecycle transitions.