GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pkgs/web-gen crate split · Issue #8958 · developing-today/code

pkgs/web-gen crate split #8958

New issue
Copy link
New issue
Copy link
Closed
Closed
pkgs/web-gen crate split#8958
Copy link
Labels
effort/lLarge: multi-day or open-ended; expect staged check-insepic/crate-splitsEpic: crate-splits - all issues of this effort carry itpriority/normalOrdinary priority (the default)status:done

Description

@dezren39
dezren39
opened on Nov 12, 2026
Issue body actions

pkgs/web-gen crate split

Template: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (design of record for the pkgs/id split, from #3195). Worked example: pkgs/id umbrella #3447, step issues #4403-#4411. Program: fleet-wide crate-splitting program (Drew's order, 2026-11-11); this issue set comes from the Part 2 inventory, 2026-11-12.

Current shape (inventory 2026-11-12)

Single binary crate, no workspace, no lib: package web-gen (edition 2021), one source file src/main.rs, 341 LOC, 0 tests. Leptos 0.8 CSR app (deps include leptos, leptos_router, wasm-bindgen, web-sys, js-sys, sqlx, rand, futures, bacon, irust). No package.nix (only shell.nix + index.html); recent commits are dependency bumps only. Existing-issue check (2026-11-12): no pre-existing crate-split design or issue for pkgs/web-gen.

Import-scan evidence

Real scan of pkgs/web-gen/src (grep for mod declarations, crate:: references, internal use paths, fn/component inventory):

  • Top-level modules: none — 0 mod declarations, 0 crate:: references. One flat file.
  • Pure helpers (lines 135-183, ~49 LOC, no Leptos types): generate_random_number, generate_divisible_i_from_n_up_to_m, generate_random_number_and_multiply, parse_input, generate_random_number_and_multiply_result, generate_random_number_and_multiply_str_future. These are named only by the components below — they are a leaf layer.
  • Components (lines 20-134 and 184-341, ~290 LOC): App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample, plus main (mount). Components reference the helpers; helpers reference nothing in the file. No cycles, no upward references.

Step sequence

One PR per step, in order:

  • Step 0: pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959 — step 0: workspace conversion + baselines (no code motion) (pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959)
  • Step 1: pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 — step 1: extract web-gen-core (pure helpers, leaf) (pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960)
  • Step 2: pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961 — step 2: extract web-gen-ui (components); slim bin to facade (pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961)

Proposed crate map

pkgs/web-gen becomes a Cargo workspace; members under pkgs/web-gen/crates/, shared versions pinned in [workspace.dependencies] from step 0.

crate contents (today's code) depends on
web-gen-core the pure helpers (lines 135-183 of today's main.rs) rand, futures — leaf, no Leptos/wasm deps
web-gen-ui the five components (App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample) web-gen-core, leptos, leptos_router
web-gen (facade/bin) main (mount/bootstrap) + re-exports of the ui surface web-gen-ui

Dependency rule: one-way, down the table; no crate names a crate above it.

Scale note: a 341-line single file — the split's value is isolating the pure logic into a testable leaf crate and giving the Leptos UI its own compilation unit, not build time.

Acceptance discipline (from the id template; applies to every step):

  • One PR per step; no step bundles another step's extraction.
  • Full test suite green on that PR. Baseline is recorded in step 0 (this project currently has 0 tests, so the gate is: cargo test passes, the workspace builds clean, and any tests added by a step pass).
  • Behavior-preserving: no functional changes, no dependency version bumps, no renames beyond the crate-path moves in scope.
  • Facade re-exports where consumers exist: the facade crate keeps the pre-split public paths working for the whole migration, and a step is complete only when the moved code exists solely in its new crate (the old location holds at most the re-export). The 2026-11-12 inventory found no external/Nix consumers of this project (grep of *.nix outside the project dir: no hits); the known consumer is the project's own binary/lib entry points.
  • Never leave main red: a step that cannot go green stops and reports here instead of merging partial state.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    developing-todayBot
    on Nov 12, 2026 – with developing.today
    Contributor
    More actions

    CODE-2718

  2. dezren39
    added
    epic/crate-splitsEpic: crate-splits - all issues of this effort carry it
    on Nov 12, 2026
  3. dezren39
    added a parent issue on Nov 12, 2026
    • epic: crate splits — splitting monolith pkgs crates into workspace sub-crates #8977
  4. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  5. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Step-0 baseline, recorded 2026-11-13 during the cross-project split pass. This project does not build in its current state — the extraction steps are blocked on a revival decision, not on split work.

    Evidence (laptop, this run):

    • Stable rustc 1.99, cargo build: fails inside leptos-0.8.2 itself — its #[component] macro expansion produces "expected identifier, found keyword fn" (leptos 0.8's macro needs its nightly paths).
    • RUSTC_BOOTSTRAP=1: same class of failure via leptos_macro's use of removed proc-macro APIs.
    • The crate pins rust-toolchain = nightly-2023-07-20 while depending on leptos 0.8 (a 2025 release) — the pin and the graph are mutually inconsistent; neither the pinned era toolchain nor the current stable can build it.
    • cargo test: 0 tests exist.

    Reviving means reconciling toolchain and leptos version (port to a current leptos on stable, or pin a 2025-era nightly and matching graph), or retiring the starter — Drew's call. Steps #8960 (web-gen-core) and #8961 (web-gen-ui) stay open; the six pure helpers identified for web-gen-core are import-scanned and the move is mechanical once the crate compiles. No source was changed by this pass.

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged + escalated — task 18780 (lane code-b)

    • Work kind: crate-split implementation (steps pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960/pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961) · Priority: priority/normal · Effort: effort/l (program level; the split itself is mechanical once the crate compiles)
    • Fresh evidence: umbrella pkgs/web-gen crate split #8958 OPEN, labels epic/crate-splits only; step 0 pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959 CLOSED with the 2026-11-13 baseline as its outcome — no workspace conversion ever landed (pkgs/web-gen on origin/main is still the single broken crate: rust-toolchain nightly-2023-07-20 vs leptos 0.8); steps pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960/pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961 OPEN.
    • The gate: the baseline recorded the revival decision as Drew's call (port to current leptos on stable / pin a 2025-era nightly + matching graph / retire the starter), but it was never delivered — no ledger item existed. Can't-you gate: the fleet cannot clear this itself because the choice is retire-vs-invest for a starter template, a value call the fleet's own baseline reserved to Drew; no standing doctrine answers it.
    • Escalation delivered: pending-questions ledger item web-gen-8958-revival (options A port / B pin / C retire, A recommended), labels user/escalated + queue/blocked + status/blocked applied, and task 18780 blocked as escalated-to-user naming that ledger id. Once Drew picks, the split steps proceed mechanically under the existing step issues.
  7. dezren39
    added
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    on Nov 17, 2026
  8. dezren39
    removed their assignment
    on Nov 20, 2026
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Decided: Continue investing in web-gen: make the existing crate build with a compatible toolchain/dependency configuration before proceeding with the crate-split steps; do not retire the starter on the current evidence.
    Why: At HEAD d94de71f02cbf41bb38479e984a8eedd4142e003, cargo check fails inside leptos-0.8.2 with six expected identifier, found keyword fn errors before compiling this crate. The split is explicitly scoped and has defined acceptance/tests; the available issue and repo evidence show no consumers but do not establish that the starter should be retired. A buildable baseline is a concrete prerequisite, not a person-only action.
    Undo: If repository evidence establishes the starter is intentionally retired or has no value, close the split steps and retire/archive the package instead of repairing it.
    By: OpenChamber scheduled lane oc-code-02

  10. dezren39
    removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · progress — Lane DX (agent archer)

    Step 1 (#8960, extract web-gen-core) is implemented and open as PR #12876: #12876

    The prerequisite build restore #12274 closed earlier today (PR #12369), which unblocked this step. The PR also lands the workspace conversion step 0 (#8959) named but never landed (it closed with the baseline recorded while the project did not build): root package + crates/web-gen-core, shared rand/futures versions in [workspace.dependencies].

    Verification on the PR branch: cargo test --workspace --offline green (10 new helper tests pass — the project's first tests), cargo check --locked --offline green on stable via fleet-build-lock, cargo fmt -- --check clean. Behavior-preserving; no dependency version bumps.

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · PROGRAM COMPLETE — all steps of the web-gen crate split are closed; closing this umbrella as completed

    Step sequence — all closed as completed:

    • Step 0: pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959 — closed 2026-11-13 (baseline recorded; workspace conversion itself landed with step 1).
    • Step 1: pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 — closed 2026-11-23 via PR refactor(web-gen): extract web-gen-core (crate split step 1, #8960) #12876 (web-gen-core extracted; workspace conversion landed; 10 helper tests).
    • Step 2: pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961 — closed 2026-11-23 via PR web-gen: extract web-gen-ui components crate (split step 2, #8961) #12918, merge 663cf37ab4bf (web-gen-ui extracted; bin slimmed to facade).

    End state vs the crate map in this issue's body (verified on main post-merge):

    • pkgs/web-gen is a Cargo workspace; members under pkgs/web-gen/crates/; shared versions pinned in [workspace.dependencies] ✓
    • web-gen-core — pure helpers, leaf (rand + futures only) ✓
    • web-gen-ui — the five components; depends on web-gen-core, leptos, leptos_router (+ wasm-bindgen/web-sys, which the components use directly) ✓
    • web-gen facade/bin — main (mount/bootstrap) + re-exports of the ui surface; depends on web-gen-ui only; 0 #[component] in src/main.rs ✓
    • Dependency direction one-way down the table ✓

    Final gate evidence (step 2 PR): cargo test --workspace green (10 passed / 0 failed), cargo check --locked clean, cargo fmt --check clean.

  13. dezren39
    closed this as completedon Nov 23, 2026
  14. developing-today
    added
    status:done
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/crate-splitsEpic: crate-splits - all issues of this effort carry itpriority/normalOrdinary priority (the default)status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.