Skip to content

refactor(app): split builder.rs into routing/openapi/health/run (#201)#202

Merged
Tuntii merged 2 commits into
mainfrom
feat/issue-201-builder-split
Jun 22, 2026
Merged

refactor(app): split builder.rs into routing/openapi/health/run (#201)#202
Tuntii merged 2 commits into
mainfrom
feat/issue-201-builder-split

Conversation

@Tuntii

@Tuntii Tuntii commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Summary

Resolves the primary scope of #201 — split the 61KB \�pp/builder.rs\ god file into focused modules.

New modules

Module Responsibility Size
\
outing.rs\ Routes, nest, static files, compression ~13KB
\openapi.rs\ Schema, docs, swagger-ui ~11KB
\health.rs\ Health endpoints, production_defaults ~5KB
\
un.rs\ Server run, apply helpers, http3 ~10KB
\�uilder.rs\ Core glue, constructors, accessors ~12KB (was ~61KB)

Verification

  • \cargo test -p rustapi-core --lib\ — 225 passed (x2)
  • Public API snapshots — byte-identical
  • Clippy + fmt clean

Closes #201 (primary). Updates #200 checklist.

Follow-up (out of scope)

Closes the primary #201 follow-up: builder.rs reduced from ~61KB to ~12KB.

- routing.rs: route registration, nest, static files, compression

- openapi.rs: schema, docs, swagger-ui

- health.rs: health endpoints, production_defaults

- run.rs: server run, apply helpers, http3

225 lib tests pass; public API snapshots unchanged.
@Tuntii
Tuntii merged commit 322d5f4 into main Jun 22, 2026
9 checks passed
@Tuntii
Tuntii deleted the feat/issue-201-builder-split branch June 22, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor god files – router & app split (follow-up)

1 participant