GeezerVison is showing github.com — refactor(start-axum): facade slimming — crate split step 3 (#8969) by dezren39 · Pull Request #12778 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Step 3 of the pkgs/web-gen-api-axum crate split (#8965), following step 1 (#8967, PR #12395) and step 2 (#8968, PR #12617).
What
- Remove
pkgs/web-gen-api-axum/src/shell.nix — a byte-identical duplicate of the project-root shell.nix sitting in src/ since 2024, referenced by nothing (code search: 0 hits). The facade's src/ now holds exactly what the step-3 scope names: lib.rs (hydrate()), fileserv.rs, main.rs, and the facade re-exports.
- Add
pkgs/web-gen-api-axum/tests/facade_paths.rs — a facade-contract test (ssr-gated, matching the step gates) that references the pre-split public paths through the facade — start_axum::app::App / SimpleCounter, start_axum::dark_mode::DarkModeToggle, start_axum::error_template::{AppError, ErrorTemplate}, start_axum::fileserv::file_and_error_handler — so a dropped or renamed re-export fails the suite at compile time. The project baseline is 0 tests; this is the first.
What did not change
No code moves, no Cargo.toml changes, no behavior change. Verified by source read before the change: the extracted code already lives solely in start-axum-ui (app.rs, dark_mode.rs) and start-axum-error (AppError, ErrorTemplate); the facade's src/app.rs / src/dark_mode.rs / src/error_template.rs hold only the one-line re-exports, and fileserv's use crate::app::App already resolves through the facade's re-export of start-axum-ui — server glue depending downward, per the umbrella's crate map.
Verification
- fleet-run run 45100026191 on this head, the step-gate set from steps 1–2:
cargo check --features ssr; cargo check --locked --features hydrate; cargo check --locked --features ssr; cargo test --locked --features ssr — all green. The suite now runs 1 test (facade_paths_resolve ... ok) where the baseline ran 0.
- Mutation checks (laptop, same gate shell): dropping
ErrorTemplate from the facade shim's export list leaves the lib compiling but fails the new test with error[E0425]: cannot find value ErrorTemplate in module start_axum::error_template at tests/facade_paths.rs:22; renaming the shim's import fails the build with E0432. The test is a working oracle for the facade contract.
Closes #8969

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Remove src/shell.nix from the facade crate: a byte-identical duplicate of
the project-root shell.nix sitting in src/ since 2024, referenced by
nothing. Facade src/ now holds exactly lib.rs (hydrate()), fileserv.rs,
main.rs and the three facade re-export shims (app, dark_mode,
error_template).
- Add tests/facade_paths.rs: a facade-contract test (ssr-gated) that
references the pre-split public paths through the facade
(start_axum::app::App / SimpleCounter,
start_axum::dark_mode::DarkModeToggle,
start_axum::error_template::{AppError, ErrorTemplate},
start_axum::fileserv::file_and_error_handler) so a dropped re-export
fails the suite. The project baseline is 0 tests; this is the first.
No code moves and no behavior change: the extracted code already lives
solely in start-axum-ui / start-axum-error, and fileserv's
use crate::app::App already resolves through the facade re-export of
start-axum-ui.
Closes #8969
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 43 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c20fbe40-7d9a-4cb9-a077-17650dd5655d
Commits
-
Reviewing files that changed from the base of the PR and between 45191b4 and a1f23ff.
Files selected for processing: 2
-
pkgs/web-gen-api-axum/src/shell.nix
pkgs/web-gen-api-axum/tests/facade_paths.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|