docs: adr 0013 accuracy
This commit is contained in:
@@ -25,9 +25,10 @@ raw environment strings.
|
|||||||
**`bootstrap` crate.** Replaces `composition` and `infra-wiring`. It is the only crate that names
|
**`bootstrap` crate.** Replaces `composition` and `infra-wiring`. It is the only crate that names
|
||||||
concrete adapters. It exposes `build_server(&AppConfig) -> ServerApp { router, addr }`,
|
concrete adapters. It exposes `build_server(&AppConfig) -> ServerApp { router, addr }`,
|
||||||
`build_worker(&AppConfig) -> WorkerApp { service }`, `build_server_on(&AppConfig, SqlitePool)` (the
|
`build_worker(&AppConfig) -> WorkerApp { service }`, `build_server_on(&AppConfig, SqlitePool)` (the
|
||||||
same router on a caller-provided pool, for tests) and `init_tracing`. `DbPool` and
|
same router on a caller-provided pool, for tests) and `init_tracing`. Bootstrap runs
|
||||||
`EventBusBackend` live here. `application` keeps a small application-owned `AppConfig` /
|
on `SqlitePool`; the event-bus backend is chosen inside bootstrap and not re-exported. `application`
|
||||||
`WrapUpConfig` built from the `config` sections, so use-case deps structs and their test fixtures
|
keeps small application-owned `AppSettings` / `WrapUpSettings` types built from the `config`
|
||||||
|
sections, so use-case deps structs and their test fixtures
|
||||||
are unchanged, and `application` no longer pulls `sqlx` or `anyhow`.
|
are unchanged, and `application` no longer pulls `sqlx` or `anyhow`.
|
||||||
|
|
||||||
**Binaries are thin.** `server` and `worker` do dotenv, `config::load`, `init_tracing`, one
|
**Binaries are thin.** `server` and `worker` do dotenv, `config::load`, `init_tracing`, one
|
||||||
|
|||||||
Reference in New Issue
Block a user