refactor: bootstrap crate, thin server/worker binaries

This commit is contained in:
2026-10-25 21:16:38 +01:00
parent 04f9c13625
commit 9bf9342fc0
39 changed files with 939 additions and 905 deletions

View File

@@ -75,3 +75,10 @@ unconditionally, with no `#[cfg(feature = "federation")]` gate. `cargo build -p
--no-default-features --features sqlite` (federation off) fails to compile because of it. This
predates worker unification — confirmed byte-identical at the commit before this plan started —
and is unrelated to the composition-root split; it needs its own fix.
## Realised by `bootstrap` (ADR-0013)
`crates/composition` is now `crates/bootstrap`, and `crates/infra-wiring` is absorbed into it. The
server and worker `main.rs` files no longer wire anything: `bootstrap::build_server` and
`bootstrap::build_worker` own the whole assembly, so the single composition root is now the only
place adapters are named. See ADR-0013.