Repository navigation
refactor(web-gen-api): extract web-gen-api-app crate (split step 1, #8964) - #12956
Merged
Merged
Conversation
…8964) Move src/app.rs (App, HomePage, NotFound) verbatim into a new member crate web-gen-api-app; the leptos_start facade holds only the re-export `pub use web_gen_api_app as app;`, so leptos_start::app::* resolves unchanged for the bin (ssr + csr arms) and hydrate(). Port of the checkpointed extraction on queue/20249-8964-web-gen-api-app-resume onto current main, adapted to the repaired Leptos 0.8 baseline: the app crate mirrors the facade's 0.8 feature shape and carries actix-web / leptos_actix as optional ssr deps for the ssr-gated block in NotFound. Cargo.lock gains only the new package entry and the facade dep edge; no dependency version changes. Verified: cargo test --workspace --locked (baseline 0 tests, ok), cargo check --workspace --features ssr, and cargo check -p leptos_start --features hydrate --target wasm32-unknown-unknown all pass; the same test command was green on the pre-change baseline.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou'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 50 minutes. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Step 1 of the pkgs/web-gen-api crate split (umbrella #8962): extract
web-gen-api-app.What
src/app.rs(App, HomePage, NotFound) moves verbatim to the new member crateweb-gen-api-app(web-gen-api-app/src/lib.rs).leptos_startfacade holds only the re-exportpub use web_gen_api_app as app;, soleptos_start::app::*resolves unchanged for the bin (ssr + csr arms) and forhydrate()in lib.rs.[workspace]section, the path dependency, and csr/hydrate/ssr feature forwarding to the app crate.This ports the checkpointed extraction from
queue/20249-8964-web-gen-api-app-resume(2096faa) onto current main, adapted to the repaired stable-Leptos-0.8 baseline (2335140, 57fc719) that cleared the step's named blocker.Verification (laptop worktree off origin/main)
cargo test --workspace --lockedgreen (project baseline is 0 tests).cargo test --workspace --locked— ok, all targets.cargo check --workspace --features ssr— ok.cargo check -p leptos_start --features hydrate --target wasm32-unknown-unknown— ok.cargo metadata --no-depssees both workspace members; rustfmt flags only pre-existing drift in untouchedsrc/main.rs.Closes #8964
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.